Concatenating results is not idea.&nbsp; Is there a way to solve this in a single query by combining the &#39;pattern matching&#39; operator and the &#39;one of&#39; operator?<br><br>Something like (which doesn&#39;t work):<br>
[<br>&nbsp; {<br>&nbsp;&nbsp;&nbsp; &quot;name&quot; : null,<br>&nbsp;&nbsp;&nbsp; &quot;name|=&quot; : [<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;^0*&quot;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;^1*&quot;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;^2*&quot;<br>&nbsp;&nbsp;&nbsp; ],<br>&nbsp;&nbsp;&nbsp; &quot;type&quot; : &quot;/base/bioventurist/science_or_technology_company&quot;<br>
&nbsp; }<br>]<br><br>-JT<br><br><div class="gmail_quote">On Sat, Jan 3, 2009 at 2:37 PM, Kurt Bollacker <span dir="ltr">&lt;<a href="mailto:kurt@metaweb.com">kurt@metaweb.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Your query is simply the logical intersection of the name constraints,<br>
rather than the union (&quot;OR&quot;) that you wanted. &nbsp;You could write each of<br>
your 10 queries like:<br>
<br>
[<br>
 &nbsp;{<br>
 &nbsp; &nbsp; &nbsp;&quot;a:name~=&quot; : &quot;^0*&quot;,<br>
<div class="Ih2E3d"> &nbsp; &nbsp; &nbsp;&quot;name&quot; : null,<br>
 &nbsp; &nbsp; &nbsp;&quot;type&quot; : &quot;/base/bioventurist/science_or_technology_company&quot;<br>
 &nbsp;}<br>
]<br>
<br>
</div>and concatenate the results. &nbsp;Currently, MQL pattern matching does not<br>
have a &quot;full set&quot; of regular expressions.<br>
<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Kurt :-)<br>
<div><div></div><div class="Wj3C7c"><br>
<br>
<br>
On Sat, Jan 03, 2009 at 02:06:43PM -0800, Rob Warren wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; I was wondering if anybody has any experience using multiple wildcards<br>
&gt; within a single MQL query?<br>
&gt;<br>
&gt; I am trying to write a single query that returns all names that begin with a<br>
&gt; number for a given type (e.g. for &quot;type&quot; :<br>
&gt; &quot;/base/bioventurist/science_or_technology_company&quot;, I want freebase to<br>
&gt; return 3M, 454 Life Sciences, 23andme etc.).<br>
&gt;<br>
&gt; I have tried using property prefixes such as in the example below and not<br>
&gt; had any luck.<br>
&gt;<br>
&gt; [<br>
&gt; &nbsp; {<br>
&gt; &nbsp; &nbsp; &quot;a:name~=&quot; : &quot;^0*&quot;,<br>
&gt; &nbsp; &nbsp; &quot;b:name~=&quot; : &quot;^1*&quot;,<br>
&gt; &nbsp; &nbsp; &quot;c:name~=&quot; : &quot;^2*&quot;,<br>
&gt; &nbsp; &nbsp; &quot;d:name~=&quot; : &quot;^3*&quot;,<br>
&gt; &nbsp; &nbsp; &quot;e:name~=&quot; : &quot;^4*&quot;,<br>
&gt; &nbsp; &nbsp; &quot;f:name~=&quot; : &quot;^5*&quot;,<br>
&gt; &nbsp; &nbsp; &quot;g:name~=&quot; : &quot;^6*&quot;,<br>
&gt; &nbsp; &nbsp; &quot;h:name~=&quot; : &quot;^7*&quot;,<br>
&gt; &nbsp; &nbsp; &quot;i:name~=&quot; : &quot;^8*&quot;,<br>
&gt; &nbsp; &nbsp; &quot;j:name~=&quot; : &quot;^9*&quot;,<br>
&gt; &nbsp; &nbsp; &quot;name&quot; : null,<br>
&gt; &nbsp; &nbsp;&quot;type&quot; : &quot;/base/bioventurist/science_or_technology_company&quot;<br>
&gt; &nbsp; }<br>
&gt; ]<br>
&gt;<br>
&gt; I am unsure as to how to combine wildcards and either numeric comparisons<br>
&gt; &quot;one of&quot; operators and am not sure if this is even an effective solution.<br>
&gt;<br>
&gt; Any suggestions or help would be much appreciated.<br>
<br>
</div></div>&gt; _______________________________________________<br>
&gt; Developers mailing list<br>
&gt; <a href="mailto:Developers@freebase.com">Developers@freebase.com</a><br>
&gt; <a href="http://lists.freebase.com/mailman/listinfo/developers" target="_blank">http://lists.freebase.com/mailman/listinfo/developers</a><br>
<br>
_______________________________________________<br>
Developers mailing list<br>
<a href="mailto:Developers@freebase.com">Developers@freebase.com</a><br>
<a href="http://lists.freebase.com/mailman/listinfo/developers" target="_blank">http://lists.freebase.com/mailman/listinfo/developers</a><br>
</blockquote></div><br>