Simple Question (Direct)
Simple Question
Q3738369
P54
Q1194951
USER
Which national sports team is Fahad Abdulrahman a member of ?
(Q3738369,P54,c(Q1194951))
action filter_type
action find
entity Q3738369
relation P54
type Q1194951
['Q3738369', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?h WHERE { resource:Q3738369 property:P54 ?h . ?h rdf:type ontology:Q1194951 }
Fahad Abdulrahman
action filter_type
action find
entity Fahad Abdulrahman
relation member of sports team
type national sports team
['Fahad Abdulrahman', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?h WHERE { resource:Fahad_Abdulrahman property:member_of_sports_team ?h . ?h rdf:type ontology:national_sports_team }
[]
national sports team
Q235910
SYSTEM
United Arab Emirates national football team
Q235910
(Q3738369,P54,c(Q1194951))
action filter_type
action find
entity Q3738369
relation P54
type Q1194951
And [ANSWER] is Fahad Abdulrahman a member of
['Q3738369', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?h WHERE { resource:Q3738369 property:P54 ?h . ?h rdf:type ontology:Q1194951 }
United Arab Emirates national football team
And United Arab Emirates national football team is Fahad Abdulrahman a member of
United Arab Emirates national football team
action filter_type
action find
entity Fahad Abdulrahman
relation member of sports team
type national sports team
['Fahad Abdulrahman', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?h WHERE { resource:Fahad_Abdulrahman property:member_of_sports_team ?h . ?h rdf:type ontology:national_sports_team }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3738369
P19
Q15617994
USER
Where was Fahad Abdulrahman born ?
(Q3738369,P19,c(Q15617994))
action filter_type
action find
entity Q3738369
relation P19
type Q15617994
['Q3738369', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15617994 . resource:Q3738369 property:P19 ?x }
Fahad Abdulrahman
action filter_type
action find
entity Fahad Abdulrahman
relation place of birth
type designation for an administrative territorial entity
['Fahad Abdulrahman', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Fahad_Abdulrahman property:place_of_birth ?x }
[]
designation for an administrative territorial entity
Q878
SYSTEM
United Arab Emirates
Q878
(Q3738369,P19,c(Q15617994))
action filter_type
action find
entity Q3738369
relation P19
type Q15617994
Fahad Abdulrahman was born in [ANSWER]
['Q3738369', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15617994 . resource:Q3738369 property:P19 ?x }
United Arab Emirates
Fahad Abdulrahman was born in United Arab Emirates
United Arab Emirates
action filter_type
action find
entity Fahad Abdulrahman
relation place of birth
type designation for an administrative territorial entity
['Fahad Abdulrahman', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Fahad_Abdulrahman property:place_of_birth ?x }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q21939317 Q878
P530 P17
Q1048835
USER
Which political territories have diplomatic relationships with United Arab Emirates or are Mount Bedwell present in ?
OR((Q878,P530,c(Q1048835)), (Q21939317,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q878
relation P530
action find
entity Q21939317
relation P17
type Q1048835
{'OR': [['Q878', 'P530', {'concept': 'Q1048835'}], ['Q21939317', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q21939317 property:P17 ?d } UNION { resource:Q878 property:P530 ?d } } . ?d rdf:type ontology:Q1048835 }
Mount Bedwell United Arab Emirates
action filter_type
action union
action find
entity United Arab Emirates
relation diplomatic relation
action find
entity Mount Bedwell
relation country
type political territorial entity
{'OR': [['United Arab Emirates', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Mount Bedwell', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Mount_Bedwell property:country ?d } UNION { resource:United_Arab_Emirates property:diplomatic_relation ?d } } . ?d rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16 Q408 Q183
SYSTEM
Canada, Australia, Germany
Q16 Q408 Q183
OR((Q878,P530,c(Q1048835)), (Q21939317,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q878
relation P530
action find
entity Q21939317
relation P17
type Q1048835
[ANSWERS] have diplomatic relationships with United Arab Emirates or are Mount Bedwell present in
{'OR': [['Q878', 'P530', {'concept': 'Q1048835'}], ['Q21939317', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q21939317 property:P17 ?d } UNION { resource:Q878 property:P530 ?d } } . ?d rdf:type ontology:Q1048835 }
Canada Australia Germany
Canada, Australia and Germany have diplomatic relationships with United Arab Emirates or are Mount Bedwell present in
Canada Australia Germany
action filter_type
action union
action find
entity United Arab Emirates
relation diplomatic relation
action find
entity Mount Bedwell
relation country
type political territorial entity
{'OR': [['United Arab Emirates', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Mount Bedwell', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Mount_Bedwell property:country ?d } UNION { resource:United_Arab_Emirates property:diplomatic_relation ?d } } . ?d rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q60 Q878
P6
Q502895
USER
Which people are the head of government of United Arab Emirates or New York City ?
OR((Q878,P6,c(Q502895)), (Q60,P6,c(Q502895)))
action filter_type
action union
action find
entity Q878
relation P6
action find
entity Q60
relation P6
type Q502895
{'OR': [['Q878', 'P6', {'concept': 'Q502895'}], ['Q60', 'P6', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q878 property:P6 ?p } UNION { resource:Q60 property:P6 ?p } } . ?p rdf:type ontology:Q502895 }
New York City United Arab Emirates
action filter_type
action union
action find
entity United Arab Emirates
relation head of government
action find
entity New York City
relation head of government
type common name
{'OR': [['United Arab Emirates', 'head of government', {'concept': 'common name'}], ['New York City', 'head of government', {'concept': 'common name'}]]}
SELECT DISTINCT ?p WHERE { { { resource:United_Arab_Emirates property:head_of_government ?p } UNION { resource:New_York_City property:head_of_government ?p } } . ?p rdf:type ontology:common_name }
[]
common name
Q204135 Q666931 Q212648 Q5536568 Q439156 Q6233903 Q4121154 Q312502 Q4911497 Q467133
SYSTEM
Some of them are Jimmy Walker, John Lindsay, Rudy Giuliani, George B. McClellan, Jr., Robert F. Wagner, John Francis Hylan, Ardolph L. Kline, Fiorello H. La Guardia, Bill de Blasio, David Dinkins
Q204135 Q441554 Q57655 Q607 Q2544704 Q4121154 Q3182321 Q312502 Q6287566 Q467122 Q329910 Q2156376 Q1701296 Q439156 Q467133 Q6233903 Q212648 Q666931 Q5536568 Q939458 Q2274772 Q4911497
OR((Q878,P6,c(Q502895)), (Q60,P6,c(Q502895)))
action filter_type
action union
action find
entity Q878
relation P6
action find
entity Q60
relation P6
type Q502895
[ANSWERS] are the head of government of United Arab Emirates or New York City
{'OR': [['Q878', 'P6', {'concept': 'Q502895'}], ['Q60', 'P6', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q878 property:P6 ?p } UNION { resource:Q60 property:P6 ?p } } . ?p rdf:type ontology:Q502895 }
Jimmy Walker William O'Dwyer Mohammed bin Rashid Al Maktoum Michael Bloomberg William Jay Gaynor Ardolph L. Kline John Purroy Mitchel Fiorello H. La Guardia Joseph V. McKee Ed Koch Abraham Beame Robert Anderson Van Wyck John P. O'Brien Robert F. Wagner David Dinkins John Francis Hylan Rudy Giuliani John Lindsay George B. McClellan, Jr. Vincent R. Impellitteri Seth Low Bill de Blasio
Jimmy Walker, John Lindsay, Rudy Giuliani, George B. McClellan, Jr., Robert F. Wagner, John Francis Hylan, Ardolph L. Kline, Fiorello H. La Guardia, Bill de Blasio and David Dinkins are the head of government of United Arab Emirates or New York City
Jimmy Walker John Lindsay Rudy Giuliani George B. McClellan, Jr. Robert F. Wagner John Francis Hylan Ardolph L. Kline Fiorello H. La Guardia Bill de Blasio David Dinkins
action filter_type
action union
action find
entity United Arab Emirates
relation head of government
action find
entity New York City
relation head of government
type common name
{'OR': [['United Arab Emirates', 'head of government', {'concept': 'common name'}], ['New York City', 'head of government', {'concept': 'common name'}]]}
SELECT DISTINCT ?p WHERE { { { resource:United_Arab_Emirates property:head_of_government ?p } UNION { resource:New_York_City property:head_of_government ?p } } . ?p rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q204135 Q666931 Q212648 Q5536568 Q439156 Q6233903 Q4121154 Q312502 Q4911497 Q467133
P6
Q56061
USER
Which administrative territories have a government lead by Jimmy Walker, John Lindsay, Rudy Giuliani, George B. McClellan, Jr., Robert F. Wagner, John Francis Hylan, Ardolph L. Kline, Fiorello H. La Guardia, Bill de Blasio and David Dinkins ?
(c(Q56061),P6,Q204135) (c(Q56061),P6,Q666931) (c(Q56061),P6,Q212648) (c(Q56061),P6,Q5536568) (c(Q56061),P6,Q439156) (c(Q56061),P6,Q6233903) (c(Q56061),P6,Q4121154) (c(Q56061),P6,Q312502) (c(Q56061),P6,Q4911497) (c(Q56061),P6,Q467133)
action union
action filter_type
action find_reverse
entity Q204135
relation P6
type Q56061
action filter_type
action find_reverse
entity Q666931
relation P6
type Q56061
action filter_type
action find_reverse
entity Q212648
relation P6
type Q56061
action filter_type
action find_reverse
entity Q5536568
relation P6
type Q56061
action filter_type
action find_reverse
entity Q439156
relation P6
type Q56061
action filter_type
action find_reverse
entity Q6233903
relation P6
type Q56061
action filter_type
action find_reverse
entity Q4121154
relation P6
type Q56061
action filter_type
action find_reverse
entity Q312502
relation P6
type Q56061
action filter_type
action find_reverse
entity Q4911497
relation P6
type Q56061
action filter_type
action find_reverse
entity Q467133
relation P6
type Q56061
[{'concept': 'Q56061'}, 'P6', 'Q204135'] [{'concept': 'Q56061'}, 'P6', 'Q666931'] [{'concept': 'Q56061'}, 'P6', 'Q212648'] [{'concept': 'Q56061'}, 'P6', 'Q5536568'] [{'concept': 'Q56061'}, 'P6', 'Q439156'] [{'concept': 'Q56061'}, 'P6', 'Q6233903'] [{'concept': 'Q56061'}, 'P6', 'Q4121154'] [{'concept': 'Q56061'}, 'P6', 'Q312502'] [{'concept': 'Q56061'}, 'P6', 'Q4911497'] [{'concept': 'Q56061'}, 'P6', 'Q467133']
SELECT DISTINCT ?c WHERE { { ?c property:P6 resource:Q204135 . ?c rdf:type ontology:Q56061 } UNION { ?c property:P6 resource:Q666931 . ?c rdf:type ontology:Q56061 } }
Jimmy Walker John Lindsay Rudy Giuliani George B. McClellan, Jr. Robert F. Wagner John Francis Hylan Ardolph L. Kline Fiorello H. La Guardia Bill de Blasio David Dinkins
action union
action filter_type
action find_reverse
entity Jimmy Walker
relation head of government
type administrative territorial entity
action filter_type
action find_reverse
entity John Lindsay
relation head of government
type administrative territorial entity
action filter_type
action find_reverse
entity Rudy Giuliani
relation head of government
type administrative territorial entity
action filter_type
action find_reverse
entity George B. McClellan, Jr.
relation head of government
type administrative territorial entity
action filter_type
action find_reverse
entity Robert F. Wagner
relation head of government
type administrative territorial entity
action filter_type
action find_reverse
entity John Francis Hylan
relation head of government
type administrative territorial entity
action filter_type
action find_reverse
entity Ardolph L. Kline
relation head of government
type administrative territorial entity
action filter_type
action find_reverse
entity Fiorello H. La Guardia
relation head of government
type administrative territorial entity
action filter_type
action find_reverse
entity Bill de Blasio
relation head of government
type administrative territorial entity
action filter_type
action find_reverse
entity David Dinkins
relation head of government
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'head of government', 'Jimmy Walker'] [{'concept': 'administrative territorial entity'}, 'head of government', 'John Lindsay'] [{'concept': 'administrative territorial entity'}, 'head of government', 'Rudy Giuliani'] [{'concept': 'administrative territorial entity'}, 'head of government', 'George B. McClellan, Jr.'] [{'concept': 'administrative territorial entity'}, 'head of government', 'Robert F. Wagner'] [{'concept': 'administrative territorial entity'}, 'head of government', 'John Francis Hylan'] [{'concept': 'administrative territorial entity'}, 'head of government', 'Ardolph L. Kline'] [{'concept': 'administrative territorial entity'}, 'head of government', 'Fiorello H. La Guardia'] [{'concept': 'administrative territorial entity'}, 'head of government', 'Bill de Blasio'] [{'concept': 'administrative territorial entity'}, 'head of government', 'David Dinkins']
SELECT DISTINCT ?c WHERE { { ?c property:head_of_government resource:Jimmy_Walker . ?c rdf:type ontology:administrative_territorial_entity } UNION { ?c property:head_of_government resource:John_Lindsay . ?c rdf:type ontology:administrative_territorial_entity } }
[]
administrative territorial entity
Q60
SYSTEM
New York City
Q60
(c(Q56061),P6,Q204135) (c(Q56061),P6,Q666931) (c(Q56061),P6,Q212648) (c(Q56061),P6,Q5536568) (c(Q56061),P6,Q439156) (c(Q56061),P6,Q6233903) (c(Q56061),P6,Q4121154) (c(Q56061),P6,Q312502) (c(Q56061),P6,Q4911497) (c(Q56061),P6,Q467133)
action union
action filter_type
action find_reverse
entity Q204135
relation P6
type Q56061
action filter_type
action find_reverse
entity Q666931
relation P6
type Q56061
action filter_type
action find_reverse
entity Q212648
relation P6
type Q56061
action filter_type
action find_reverse
entity Q5536568
relation P6
type Q56061
action filter_type
action find_reverse
entity Q439156
relation P6
type Q56061
action filter_type
action find_reverse
entity Q6233903
relation P6
type Q56061
action filter_type
action find_reverse
entity Q4121154
relation P6
type Q56061
action filter_type
action find_reverse
entity Q312502
relation P6
type Q56061
action filter_type
action find_reverse
entity Q4911497
relation P6
type Q56061
action filter_type
action find_reverse
entity Q467133
relation P6
type Q56061
[ANSWER] have a government lead by Jimmy Walker, John Lindsay, Rudy Giuliani, George B. McClellan, Jr., Robert F. Wagner, John Francis Hylan, Ardolph L. Kline, Fiorello H. La Guardia, Bill de Blasio and David Dinkins
[{'concept': 'Q56061'}, 'P6', 'Q204135'] [{'concept': 'Q56061'}, 'P6', 'Q666931'] [{'concept': 'Q56061'}, 'P6', 'Q212648'] [{'concept': 'Q56061'}, 'P6', 'Q5536568'] [{'concept': 'Q56061'}, 'P6', 'Q439156'] [{'concept': 'Q56061'}, 'P6', 'Q6233903'] [{'concept': 'Q56061'}, 'P6', 'Q4121154'] [{'concept': 'Q56061'}, 'P6', 'Q312502'] [{'concept': 'Q56061'}, 'P6', 'Q4911497'] [{'concept': 'Q56061'}, 'P6', 'Q467133']
SELECT DISTINCT ?c WHERE { { ?c property:P6 resource:Q204135 . ?c rdf:type ontology:Q56061 } UNION { ?c property:P6 resource:Q666931 . ?c rdf:type ontology:Q56061 } }
New York City
New York City have a government lead by Jimmy Walker, John Lindsay, Rudy Giuliani, George B. McClellan, Jr., Robert F. Wagner, John Francis Hylan, Ardolph L. Kline, Fiorello H. La Guardia, Bill de Blasio and David Dinkins
New York City
action union
action filter_type
action find_reverse
entity Jimmy Walker
relation head of government
type administrative territorial entity
action filter_type
action find_reverse
entity John Lindsay
relation head of government
type administrative territorial entity
action filter_type
action find_reverse
entity Rudy Giuliani
relation head of government
type administrative territorial entity
action filter_type
action find_reverse
entity George B. McClellan, Jr.
relation head of government
type administrative territorial entity
action filter_type
action find_reverse
entity Robert F. Wagner
relation head of government
type administrative territorial entity
action filter_type
action find_reverse
entity John Francis Hylan
relation head of government
type administrative territorial entity
action filter_type
action find_reverse
entity Ardolph L. Kline
relation head of government
type administrative territorial entity
action filter_type
action find_reverse
entity Fiorello H. La Guardia
relation head of government
type administrative territorial entity
action filter_type
action find_reverse
entity Bill de Blasio
relation head of government
type administrative territorial entity
action filter_type
action find_reverse
entity David Dinkins
relation head of government
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'head of government', 'Jimmy Walker'] [{'concept': 'administrative territorial entity'}, 'head of government', 'John Lindsay'] [{'concept': 'administrative territorial entity'}, 'head of government', 'Rudy Giuliani'] [{'concept': 'administrative territorial entity'}, 'head of government', 'George B. McClellan, Jr.'] [{'concept': 'administrative territorial entity'}, 'head of government', 'Robert F. Wagner'] [{'concept': 'administrative territorial entity'}, 'head of government', 'John Francis Hylan'] [{'concept': 'administrative territorial entity'}, 'head of government', 'Ardolph L. Kline'] [{'concept': 'administrative territorial entity'}, 'head of government', 'Fiorello H. La Guardia'] [{'concept': 'administrative territorial entity'}, 'head of government', 'Bill de Blasio'] [{'concept': 'administrative territorial entity'}, 'head of government', 'David Dinkins']
SELECT DISTINCT ?c WHERE { { ?c property:head_of_government resource:Jimmy_Walker . ?c rdf:type ontology:administrative_territorial_entity } UNION { ?c property:head_of_government resource:John_Lindsay . ?c rdf:type ontology:administrative_territorial_entity } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q204135
P734
Q82799
USER
Who is associated with Jimmy Walker?
(Q60,P734,c(Q82799))
action filter_type
action find
entity Q204135
relation P734
type Q82799
['Q60', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q82799 . resource:Q204135 property:P734 ?o }
Jimmy Walker
action filter_type
action find
entity Jimmy Walker
relation family name
type name
['New York City', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:name . resource:Jimmy_Walker property:family_name ?o }
[]
name
Q1158605
SYSTEM
Walker
Q1158605
(Q60,P734,c(Q82799))
action filter_type
action find
entity Q204135
relation P734
type Q82799
[ANSWER] is associated with Jimmy [ANSWER]
['Q60', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q82799 . resource:Q204135 property:P734 ?o }
Walker
Walker is associated with Jimmy Walker
Walker
action filter_type
action find
entity Jimmy Walker
relation family name
type name
['New York City', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:name . resource:Jimmy_Walker property:family_name ?o }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q1158605 Q11967918
P734
Q502895
USER
Does Espen Andersen have that one as their family name ?
(Q11967918,P734,Q1158605)
action is_in
entity Q11967918
action find
entity Q1158605
relation P734
['Q11967918', 'P734', 'Q1158605']
ASK WHERE { resource:Q1158605 property:P734 resource:Q11967918 }
Walker Espen Andersen
action is_in
entity Espen Andersen
action find
entity Walker
relation family name
['Espen Andersen', 'family name', 'Walker']
ASK WHERE { resource:Walker property:family_name resource:Espen_Andersen }
[]
common name
SYSTEM
NO
(Q11967918,P734,Q1158605)
action is_in
entity Q11967918
action find
entity Q1158605
relation P734
[ANSWER]
['Q11967918', 'P734', 'Q1158605']
ASK WHERE { resource:Q1158605 property:P734 resource:Q11967918 }
No
action is_in
entity Espen Andersen
action find
entity Walker
relation family name
['Espen Andersen', 'family name', 'Walker']
ASK WHERE { resource:Walker property:family_name resource:Espen_Andersen }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q60 Q20745616
P138
Q56061
USER
How many administrative territories are New York City or Aris Polemiou named after ?
(Q60,P138,c(Q56061)) (Q20745616,P138,c(Q56061))
action count
action union
action filter_type
action find
entity Q60
relation P138
type Q56061
action filter_type
action find
entity Q20745616
relation P138
type Q56061
['Q60', 'P138', {'concept': 'Q56061'}] ['Q20745616', 'P138', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?b ) WHERE { { resource:Q60 property:P138 ?h . ?h rdf:type ontology:Q56061 } UNION { resource:Q20745616 property:P138 ?h . ?h rdf:type ontology:Q56061 } }
New York City Aris Polemiou
action count
action union
action filter_type
action find
entity New York City
relation named after
type administrative territorial entity
action filter_type
action find
entity Aris Polemiou
relation named after
type administrative territorial entity
['New York City', 'named after', {'concept': 'administrative territorial entity'}] ['Aris Polemiou', 'named after', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?b ) WHERE { { resource:New_York_City property:named_after ?h . ?h rdf:type ontology:administrative_territorial_entity } UNION { resource:Aris_Polemiou property:named_after ?h . ?h rdf:type ontology:administrative_territorial_entity } }
[]
administrative territorial entity
SYSTEM
2
Q42462 Q7209281
(Q60,P138,c(Q56061)) (Q20745616,P138,c(Q56061))
action count
action union
action filter_type
action find
entity Q60
relation P138
type Q56061
action filter_type
action find
entity Q20745616
relation P138
type Q56061
[ANSWER]
['Q60', 'P138', {'concept': 'Q56061'}] ['Q20745616', 'P138', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?b ) WHERE { { resource:Q60 property:P138 ?h . ?h rdf:type ontology:Q56061 } UNION { resource:Q20745616 property:P138 ?h . ?h rdf:type ontology:Q56061 } }
York Polemi
2
action count
action union
action filter_type
action find
entity New York City
relation named after
type administrative territorial entity
action filter_type
action find
entity Aris Polemiou
relation named after
type administrative territorial entity
['New York City', 'named after', {'concept': 'administrative territorial entity'}] ['Aris Polemiou', 'named after', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?b ) WHERE { { resource:New_York_City property:named_after ?h . ?h rdf:type ontology:administrative_territorial_entity } UNION { resource:Aris_Polemiou property:named_after ?h . ?h rdf:type ontology:administrative_territorial_entity } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q60
P163
Q14660
USER
Which flag is associated with that administrative territory ?
action filter_type
action find
entity Q60
relation P163
type Q14660
SELECT DISTINCT ?a WHERE { resource:Q60 property:P163 ?a . ?a rdf:type ontology:Q14660 }
New York City
action filter_type
action find
entity New York City
relation flag
type flag
SELECT DISTINCT ?a WHERE { resource:New_York_City property:flag ?a . ?a rdf:type ontology:flag }
[]
flag
Q1414813
SYSTEM
Flag of New York City
Q1414813
action filter_type
action find
entity Q60
relation P163
type Q14660
City [ANSWER] is associated with that administrative territory
SELECT DISTINCT ?a WHERE { resource:Q60 property:P163 ?a . ?a rdf:type ontology:Q14660 }
Flag of New York City
City Flag of New York City is associated with that administrative territory
Flag of New York City
action filter_type
action find
entity New York City
relation flag
type flag
SELECT DISTINCT ?a WHERE { resource:New_York_City property:flag ?a . ?a rdf:type ontology:flag }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q207111
P127
Q1048835 Q2235308 Q4830453
USER
Which political territories are the owners of greater number of ship types or business enterprises than North Lanarkshire ?
(c(Q2235308)|c(Q4830453),P127,c(Q1048835))
action greater
action union
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q2235308
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q4830453
action count
action filter_multi_types
action find_reverse
entity Q207111
relation P127
type Q2235308
type Q4830453
[[{'concept': 'Q2235308'}, {'concept': 'Q4830453'}], 'P127', {'concept': 'Q1048835'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?o ) AS ?s ) WHERE { VALUES ( ?w ) { ( ontology:Q4830453 ) ( ontology:Q2235308 ) } . ?o rdf:type ?w } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?l ) WHERE { ?n property:P127 resource:Q207111 . { VALUES ( ?m ) { ( ontology:Q2235308 ) ( ontology:Q4830453 ) } . ?n rdf:type ?m } } } . FILTER ( ?s > ?l ) }
North Lanarkshire
action greater
action union
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type ship type
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type business enterprise
action count
action filter_multi_types
action find_reverse
entity North Lanarkshire
relation owned by
type ship type
type business enterprise
[[{'concept': 'ship type'}, {'concept': 'business enterprise'}], 'owned by', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?o ) AS ?s ) WHERE { VALUES ( ?w ) { ( ontology:business_enterprise ) ( ontology:ship_type ) } . ?o rdf:type ?w } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?l ) WHERE { ?n property:owned_by resource:North_Lanarkshire . { VALUES ( ?m ) { ( ontology:ship_type ) ( ontology:business_enterprise ) } . ?n rdf:type ?m } } } . FILTER ( ?s > ?l ) }
[]
political territorial entity ship type business enterprise
Q183 Q6142 Q6139
SYSTEM
Germany, Potsdam-Mittelmark, Havelland
Q183 Q6139 Q202174 Q6142
(c(Q2235308)|c(Q4830453),P127,c(Q1048835))
action greater
action union
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q2235308
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q4830453
action count
action filter_multi_types
action find_reverse
entity Q207111
relation P127
type Q2235308
type Q4830453
[ANSWERS] are the owners of greater number of ship types or business enterprises than North Lanarkshire
[[{'concept': 'Q2235308'}, {'concept': 'Q4830453'}], 'P127', {'concept': 'Q1048835'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?o ) AS ?s ) WHERE { VALUES ( ?w ) { ( ontology:Q4830453 ) ( ontology:Q2235308 ) } . ?o rdf:type ?w } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?l ) WHERE { ?n property:P127 resource:Q207111 . { VALUES ( ?m ) { ( ontology:Q2235308 ) ( ontology:Q4830453 ) } . ?n rdf:type ?m } } } . FILTER ( ?s > ?l ) }
Germany Havelland Argyll and Bute Potsdam-Mittelmark
Germany, Potsdam-Mittelmark and Havelland are the owners of greater number of ship types or business enterprises than North Lanarkshire
Germany Potsdam-Mittelmark Havelland
action greater
action union
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type ship type
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type business enterprise
action count
action filter_multi_types
action find_reverse
entity North Lanarkshire
relation owned by
type ship type
type business enterprise
[[{'concept': 'ship type'}, {'concept': 'business enterprise'}], 'owned by', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?o ) AS ?s ) WHERE { VALUES ( ?w ) { ( ontology:business_enterprise ) ( ontology:ship_type ) } . ?o rdf:type ?w } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?l ) WHERE { ?n property:owned_by resource:North_Lanarkshire . { VALUES ( ?m ) { ( ontology:ship_type ) ( ontology:business_enterprise ) } . ?n rdf:type ?m } } } . FILTER ( ?s > ?l ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q6053
P127
Q1048835 Q2235308 Q4830453
USER
And what about Gifhorn?
(c(Q2235308)|c(Q4830453),P127,c(Q1048835))
action greater
action union
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q2235308
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q4830453
action count
action filter_multi_types
action find_reverse
entity Q6053
relation P127
type Q2235308
type Q4830453
[[{'concept': 'Q2235308'}, {'concept': 'Q4830453'}], 'P127', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) ?f WHERE { { ?s property:P127 ?f . ?f rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q2235308 } UNION { ?s property:P127 ?f . ?f rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q4830453 } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?e ) WHERE { { { ?x rdf:type ontology:Q2235308 } UNION { ?x rdf:type ontology:Q4830453 } } . ?x property:P127 resource:Q6053 } } . FILTER ( ?z > ?e ) }
Gifhorn
action greater
action union
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type ship type
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type business enterprise
action count
action filter_multi_types
action find_reverse
entity Gifhorn
relation owned by
type ship type
type business enterprise
[[{'concept': 'ship type'}, {'concept': 'business enterprise'}], 'owned by', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) ?f WHERE { { ?s property:owned_by ?f . ?f rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:ship_type } UNION { ?s property:owned_by ?f . ?f rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:business_enterprise } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?e ) WHERE { { { ?x rdf:type ontology:ship_type } UNION { ?x rdf:type ontology:business_enterprise } } . ?x property:owned_by resource:Gifhorn } } . FILTER ( ?z > ?e ) }
[]
political territorial entity ship type business enterprise
Q183 Q6142 Q6139
SYSTEM
Germany, Potsdam-Mittelmark, Havelland
Q183 Q6139 Q202174 Q6142
(c(Q2235308)|c(Q4830453),P127,c(Q1048835))
action greater
action union
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q2235308
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q4830453
action count
action filter_multi_types
action find_reverse
entity Q6053
relation P127
type Q2235308
type Q4830453
[ANSWERS]
[[{'concept': 'Q2235308'}, {'concept': 'Q4830453'}], 'P127', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) ?f WHERE { { ?s property:P127 ?f . ?f rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q2235308 } UNION { ?s property:P127 ?f . ?f rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q4830453 } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?e ) WHERE { { { ?x rdf:type ontology:Q2235308 } UNION { ?x rdf:type ontology:Q4830453 } } . ?x property:P127 resource:Q6053 } } . FILTER ( ?z > ?e ) }
Germany Havelland Argyll and Bute Potsdam-Mittelmark
Germany Potsdam-Mittelmark Havelland
action greater
action union
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type ship type
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type business enterprise
action count
action filter_multi_types
action find_reverse
entity Gifhorn
relation owned by
type ship type
type business enterprise
[[{'concept': 'ship type'}, {'concept': 'business enterprise'}], 'owned by', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) ?f WHERE { { ?s property:owned_by ?f . ?f rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:ship_type } UNION { ?s property:owned_by ?f . ?f rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:business_enterprise } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?e ) WHERE { { { ?x rdf:type ontology:ship_type } UNION { ?x rdf:type ontology:business_enterprise } } . ?x property:owned_by resource:Gifhorn } } . FILTER ( ?z > ?e ) }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q664 Q183
P27
Q502895
USER
Which people are a citizen of Germany and New Zealand ?
AND((c(Q502895),P27,Q183), (c(Q502895),P27,Q664))
action filter_type
action intersection
action find_reverse
entity Q183
relation P27
action find_reverse
entity Q664
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q183'], [{'concept': 'Q502895'}, 'P27', 'Q664']]}
SELECT DISTINCT ?j WHERE { ?j property:P27 resource:Q183 . ?j property:P27 resource:Q664 . ?j rdf:type ontology:Q502895 }
New Zealand Germany
action filter_type
action intersection
action find_reverse
entity Germany
relation country of citizenship
action find_reverse
entity New Zealand
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Germany'], [{'concept': 'common name'}, 'country of citizenship', 'New Zealand']]}
SELECT DISTINCT ?j WHERE { ?j property:country_of_citizenship resource:Germany . ?j property:country_of_citizenship resource:New_Zealand . ?j rdf:type ontology:common_name }
[]
common name
Q819793 Q213922 Q76222 Q99407 Q61606 Q108592 Q1498251 Q110698 Q1504859 Q5085051
SYSTEM
Richard Fuchs, Julius von Haast, William Trautmann, Minnie Maria Dronke, Laura Dekker, Gustavus von Tempsky, Veronika Meduna, Peter Munz, Georg Jacoby, Charlie Huber
Q819793 Q213922 Q76222 Q99407 Q61606 Q108592 Q1498251 Q110698 Q1504859 Q5085051
AND((c(Q502895),P27,Q183), (c(Q502895),P27,Q664))
action filter_type
action intersection
action find_reverse
entity Q183
relation P27
action find_reverse
entity Q664
relation P27
type Q502895
[ANSWERS] are a citizen of Germany and New Zealand
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q183'], [{'concept': 'Q502895'}, 'P27', 'Q664']]}
SELECT DISTINCT ?j WHERE { ?j property:P27 resource:Q183 . ?j property:P27 resource:Q664 . ?j rdf:type ontology:Q502895 }
Richard Fuchs Julius von Haast William Trautmann Minnie Maria Dronke Laura Dekker Gustavus von Tempsky Veronika Meduna Peter Munz Georg Jacoby Charlie Huber
Richard Fuchs, Julius von Haast, William Trautmann, Minnie Maria Dronke, Laura Dekker, Gustavus von Tempsky, Veronika Meduna, Peter Munz, Georg Jacoby and Charlie Huber are a citizen of Germany and New Zealand
Richard Fuchs Julius von Haast William Trautmann Minnie Maria Dronke Laura Dekker Gustavus von Tempsky Veronika Meduna Peter Munz Georg Jacoby Charlie Huber
action filter_type
action intersection
action find_reverse
entity Germany
relation country of citizenship
action find_reverse
entity New Zealand
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Germany'], [{'concept': 'common name'}, 'country of citizenship', 'New Zealand']]}
SELECT DISTINCT ?j WHERE { ?j property:country_of_citizenship resource:Germany . ?j property:country_of_citizenship resource:New_Zealand . ?j rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q386724
USER
Which works had their voice dubbing done by exactly 11 people ?
(c(Q386724),P725,c(Q502895))
action equal
action find_tuple_counts
relation P725
type Q386724
type Q502895
value 11
[{'concept': 'Q386724'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { FILTER ( ?y = 11 ) . { SELECT DISTINCT ?o ( COUNT ( ?h ) AS ?y ) WHERE { ?o property:P725 ?h . ?o rdf:type ontology:Q386724 . ?h rdf:type ontology:Q502895 } GROUP BY ?o } }
action equal
action find_tuple_counts
relation voice actor
type work
type common name
value 11
[{'concept': 'work'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { FILTER ( ?y = 11 ) . { SELECT DISTINCT ?o ( COUNT ( ?h ) AS ?y ) WHERE { ?o property:voice_actor ?h . ?o rdf:type ontology:work . ?h rdf:type ontology:common_name } GROUP BY ?o } }
[]
common name work
Q26987217 Q26701981 Q26390366
SYSTEM
Hércules y la visita de Zeus, Hércules y el grifo, Hércules y el rey de Tesalia
Q26987217 Q26701981 Q26390366 Q26299860 Q26457246
(c(Q386724),P725,c(Q502895))
action equal
action find_tuple_counts
relation P725
type Q386724
type Q502895
value 11
[ANSWERS] had their voice dubbing done by exactly 11 people
[{'concept': 'Q386724'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { FILTER ( ?y = 11 ) . { SELECT DISTINCT ?o ( COUNT ( ?h ) AS ?y ) WHERE { ?o property:P725 ?h . ?o rdf:type ontology:Q386724 . ?h rdf:type ontology:Q502895 } GROUP BY ?o } }
Hércules y la visita de Zeus Hércules y el grifo Hércules y el rey de Tesalia Hércules y el primer médico del mundo Hércules y el arma secreta
Hércules y la visita de Zeus, Hércules y el grifo and Hércules y el rey de Tesalia had their voice dubbing done by exactly 11 people
Hércules y la visita de Zeus Hércules y el grifo Hércules y el rey de Tesalia
action equal
action find_tuple_counts
relation voice actor
type work
type common name
value 11
[{'concept': 'work'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { FILTER ( ?y = 11 ) . { SELECT DISTINCT ?o ( COUNT ( ?h ) AS ?y ) WHERE { ?o property:voice_actor ?h . ?o rdf:type ontology:work . ?h rdf:type ontology:common_name } GROUP BY ?o } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q213922
P106
Q12737077
USER
Which occupations are the professions of Julius von Haast ?
(Q213922,P106,c(Q12737077))
action filter_type
action find
entity Q213922
relation P106
type Q12737077
['Q213922', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q213922 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
Julius von Haast
action filter_type
action find
entity Julius von Haast
relation occupation
type occupation
['Julius von Haast', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Julius_von_Haast property:occupation ?h . ?h rdf:type ontology:occupation }
[]
occupation
Q1622272 Q11900058 Q1225716
SYSTEM
university teacher, explorer, ornithologist
Q11900058 Q1225716 Q1662561 Q520549 Q1622272
(Q213922,P106,c(Q12737077))
action filter_type
action find
entity Q213922
relation P106
type Q12737077
The professions of Julius von Haast are a [ANSWERS]
['Q213922', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q213922 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
explorer ornithologist paleontologist geologist university teacher
The professions of Julius von Haast are a university teacher, explorer and ornithologist
university teacher explorer ornithologist
action filter_type
action find
entity Julius von Haast
relation occupation
type occupation
['Julius von Haast', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Julius_von_Haast property:occupation ?h . ?h rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q213922
P921
Q191067
USER
Which article has Julius von Haast as its main topic ?
(c(Q191067),P921,Q213922)
action filter_type
action find_reverse
entity Q213922
relation P921
type Q191067
[{'concept': 'Q191067'}, 'P921', 'Q213922']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q191067 . ?k property:P921 resource:Q213922 }
Julius von Haast
action filter_type
action find_reverse
entity Julius von Haast
relation main subject
type article
[{'concept': 'article'}, 'main subject', 'Julius von Haast']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:article . ?k property:main_subject resource:Julius_von_Haast }
[]
article
Q19019491
SYSTEM
Haast, John Francis Julius von (DNB00)
Q19019491
(c(Q191067),P921,Q213922)
action filter_type
action find_reverse
entity Q213922
relation P921
type Q191067
[ANSWER] has Julius von Haast as its main topic
[{'concept': 'Q191067'}, 'P921', 'Q213922']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q191067 . ?k property:P921 resource:Q213922 }
Haast, John Francis Julius von (DNB00)
Haast, John Francis Julius von (DNB00) has Julius von Haast as its main topic
Haast, John Francis Julius von (DNB00)
action filter_type
action find_reverse
entity Julius von Haast
relation main subject
type article
[{'concept': 'article'}, 'main subject', 'Julius von Haast']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:article . ?k property:main_subject resource:Julius_von_Haast }
[]