Simple Question (Direct)
Simple Question
Q4400961
P54
Q12973014
USER
Which sports team is Bill Smith a member of ?
(Q4400961,P54,c(Q12973014))
action filter_type
action find
entity Q4400961
relation P54
type Q12973014
['Q4400961', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?t WHERE { resource:Q4400961 property:P54 ?t . ?t rdf:type ontology:Q12973014 }
Bill Smith
action filter_type
action find
entity Bill Smith
relation member of sports team
type sports team
['Bill Smith', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?t WHERE { resource:Bill_Smith property:member_of_sports_team ?t . ?t rdf:type ontology:sports_team }
[]
sports team
Q131364
SYSTEM
New York Knicks
Q131364
(Q4400961,P54,c(Q12973014))
action filter_type
action find
entity Q4400961
relation P54
type Q12973014
The [ANSWER] is Bill Smith a member of
['Q4400961', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?t WHERE { resource:Q4400961 property:P54 ?t . ?t rdf:type ontology:Q12973014 }
New York Knicks
The New York Knicks is Bill Smith a member of
New York Knicks
action filter_type
action find
entity Bill Smith
relation member of sports team
type sports team
['Bill Smith', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?t WHERE { resource:Bill_Smith property:member_of_sports_team ?t . ?t rdf:type ontology:sports_team }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4400961
P734
Q82799
USER
Which name is associated with that person ?
(Q131364,P734,c(Q82799))
action filter_type
action find
entity Q4400961
relation P734
type Q82799
['Q131364', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?h WHERE { resource:Q4400961 property:P734 ?h . ?h rdf:type ontology:Q82799 }
Bill Smith
action filter_type
action find
entity Bill Smith
relation family name
type name
['New York Knicks', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?h WHERE { resource:Bill_Smith property:family_name ?h . ?h rdf:type ontology:name }
[]
name
Q1158446
SYSTEM
Smith
Q1158446
(Q131364,P734,c(Q82799))
action filter_type
action find
entity Q4400961
relation P734
type Q82799
[ANSWER] is associated with that person
['Q131364', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?h WHERE { resource:Q4400961 property:P734 ?h . ?h rdf:type ontology:Q82799 }
Smith
Smith is associated with that person
Smith
action filter_type
action find
entity Bill Smith
relation family name
type name
['New York Knicks', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?h WHERE { resource:Bill_Smith property:family_name ?h . ?h rdf:type ontology:name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7351004 Q4400961
P69
Q3914
USER
Which schools were Bill Smith or Robert Whitcombe educated at ?
OR((Q4400961,P69,c(Q3914)), (Q7351004,P69,c(Q3914)))
action filter_type
action union
action find
entity Q4400961
relation P69
action find
entity Q7351004
relation P69
type Q3914
{'OR': [['Q4400961', 'P69', {'concept': 'Q3914'}], ['Q7351004', 'P69', {'concept': 'Q3914'}]]}
SELECT DISTINCT ?j WHERE { { VALUES ( ?a ) { ( resource:Q4400961 ) ( resource:Q7351004 ) } . ?a property:P69 ?j } . ?j rdf:type ontology:Q3914 }
Robert Whitcombe Bill Smith
action filter_type
action union
action find
entity Bill Smith
relation educated at
action find
entity Robert Whitcombe
relation educated at
type school
{'OR': [['Bill Smith', 'educated at', {'concept': 'school'}], ['Robert Whitcombe', 'educated at', {'concept': 'school'}]]}
SELECT DISTINCT ?j WHERE { { VALUES ( ?a ) { ( resource:Bill_Smith ) ( resource:Robert_Whitcombe ) } . ?a property:educated_at ?j } . ?j rdf:type ontology:school }
[]
school
Q7013764 Q1059517
SYSTEM
New York Military Academy, Winchester College
Q7013764 Q1059517
OR((Q4400961,P69,c(Q3914)), (Q7351004,P69,c(Q3914)))
action filter_type
action union
action find
entity Q4400961
relation P69
action find
entity Q7351004
relation P69
type Q3914
Bill Smith or Robert Whitcombe were educated at [ANSWERS]
{'OR': [['Q4400961', 'P69', {'concept': 'Q3914'}], ['Q7351004', 'P69', {'concept': 'Q3914'}]]}
SELECT DISTINCT ?j WHERE { { VALUES ( ?a ) { ( resource:Q4400961 ) ( resource:Q7351004 ) } . ?a property:P69 ?j } . ?j rdf:type ontology:Q3914 }
New York Military Academy Winchester College
Bill Smith or Robert Whitcombe were educated at New York Military Academy and Winchester College
New York Military Academy Winchester College
action filter_type
action union
action find
entity Bill Smith
relation educated at
action find
entity Robert Whitcombe
relation educated at
type school
{'OR': [['Bill Smith', 'educated at', {'concept': 'school'}], ['Robert Whitcombe', 'educated at', {'concept': 'school'}]]}
SELECT DISTINCT ?j WHERE { { VALUES ( ?a ) { ( resource:Bill_Smith ) ( resource:Robert_Whitcombe ) } . ?a property:educated_at ?j } . ?j rdf:type ontology:school }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4646829 Q131364
P17
Q15617994
USER
Which administrative territories are New York Knicks or A'ufaga present in ?
OR((Q131364,P17,c(Q15617994)), (Q4646829,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q131364
relation P17
action find
entity Q4646829
relation P17
type Q15617994
{'OR': [['Q131364', 'P17', {'concept': 'Q15617994'}], ['Q4646829', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q131364 property:P17 ?v } UNION { resource:Q4646829 property:P17 ?v } } . ?v rdf:type ontology:Q15617994 }
A'ufaga New York Knicks
action filter_type
action union
action find
entity New York Knicks
relation country
action find
entity A'ufaga
relation country
type designation for an administrative territorial entity
{'OR': [['New York Knicks', 'country', {'concept': 'designation for an administrative territorial entity'}], ["A'ufaga", 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:New_York_Knicks property:country ?v } UNION { resource:A'ufaga property:country ?v } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q683 Q30
SYSTEM
Samoa, United States of America
Q683 Q30
OR((Q131364,P17,c(Q15617994)), (Q4646829,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q131364
relation P17
action find
entity Q4646829
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q131364', 'P17', {'concept': 'Q15617994'}], ['Q4646829', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q131364 property:P17 ?v } UNION { resource:Q4646829 property:P17 ?v } } . ?v rdf:type ontology:Q15617994 }
Samoa United States of America
Which administrative territories are New York Knicks or A'ufaga present in
Samoa United States of America
action filter_type
action union
action find
entity New York Knicks
relation country
action find
entity A'ufaga
relation country
type designation for an administrative territorial entity
{'OR': [['New York Knicks', 'country', {'concept': 'designation for an administrative territorial entity'}], ["A'ufaga", 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:New_York_Knicks property:country ?v } UNION { resource:A'ufaga property:country ?v } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q15617994 Q2342494 Q3305213
USER
Which administrative territories are demonstrated in atmost 1 collectables or paintings ?
(c(Q2342494)|c(Q3305213),P180,c(Q15617994))
action atmost
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q3305213
value 1
[[{'concept': 'Q2342494'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?y ) ?z WHERE { { ?d property:P180 ?z . ?z rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q2342494 } UNION { ?d property:P180 ?z . ?z rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q3305213 } } GROUP BY ?z } . FILTER ( ?y <= 1 ) }
action atmost
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type painting
value 1
[[{'concept': 'collectable'}, {'concept': 'painting'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?y ) ?z WHERE { { ?d property:depicts ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:collectable } UNION { ?d property:depicts ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:painting } } GROUP BY ?z } . FILTER ( ?y <= 1 ) }
[]
designation for an administrative territorial entity collectable painting
Q155 Q159 Q55
SYSTEM
Brazil, Russia, Netherlands
Q3883 Q1256 Q1462 Q241744 Q674904 Q668 Q142 Q55 Q145 Q47505 Q148 Q128081 Q712 Q711 Q243467 Q72672 Q1460 Q660687 Q159 Q41 Q155 Q794 Q160262 Q243128 Q739 Q254356 Q15260970 Q822 Q532 Q11343 Q268214 Q13376 Q12594 Q34 Q928 Q39 Q858 Q199952 Q854 Q736 Q1280 Q1282 Q20 Q27 Q188315 Q29 Q7077 Q80644 Q189 Q1028 Q47821 Q12574 Q12578 Q223 Q12675 Q229 Q17 Q553347 Q551142 Q652480 Q111144 Q298 Q13320 Q186115 Q373189 Q159605 Q72425 Q12657 Q1438 Q26300792 Q183366 Q6256 Q79 Q72432 Q811 Q772 Q1016 Q1273 Q1011 Q913434 Q242683 Q80563 Q376896 Q34876 Q689720 Q33788 Q12563 Q190963 Q80591 Q42288 Q1034158
(c(Q2342494)|c(Q3305213),P180,c(Q15617994))
action atmost
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q3305213
value 1
[ANSWERS] are demonstrated in atmost 1 collectables or paintings
[[{'concept': 'Q2342494'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?y ) ?z WHERE { { ?d property:P180 ?z . ?z rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q2342494 } UNION { ?d property:P180 ?z . ?z rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q3305213 } } GROUP BY ?z } . FILTER ( ?y <= 1 ) }
Catanzaro Liguria Sardinia Ariccia Krumau am Kamp India France Netherlands United Kingdom Dolo People's Republic of China Cori, Lazio Fiji Mongolia Subiaco Sorrento Sicily Velden am Wörther See Russia Greece Brazil Iran Caprarola Olevano Romano Colombia Murnau am Staffelsee Nantcribba Lebanon village Wetter (Ruhr) Bordighera Pistoia Marne Sweden Philippines Switzerland Syria Taormina Sri Lanka Ecuador Umbria Lazio Norway Ireland Porto Venere Spain Dachau Köngen Iceland Morocco Malcesine Loiret Lot-et-Garonne Greenland Oise Cyprus Japan Kobern-Gondorf Wartenberg Kennemerland Canossa Chile Savona Montmartre Bithynia Tivoli Pozzuoli Nièvre Campania Rhos Y Madoc territory country Egypt Procida Nicaragua Drenthe Libya Tuscany Cape Verde Les Halles Genzano di Roma Amalfi Grenelle province Thörl New Caledonia Landes Frascati Atrani Asola Cap Norfeu
Brazil, Russia and Netherlands are demonstrated in atmost 1 collectables or paintings
Brazil Russia Netherlands
action atmost
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type painting
value 1
[[{'concept': 'collectable'}, {'concept': 'painting'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?y ) ?z WHERE { { ?d property:depicts ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:collectable } UNION { ?d property:depicts ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:painting } } GROUP BY ?z } . FILTER ( ?y <= 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q829941 Q131364
P17
Q15617994
USER
Which administrative territories do New York Knicks or Saint-Rémy-en-Mauges belong to ?
OR((Q131364,P17,c(Q15617994)), (Q829941,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q131364
relation P17
action find
entity Q829941
relation P17
type Q15617994
{'OR': [['Q131364', 'P17', {'concept': 'Q15617994'}], ['Q829941', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q131364 property:P17 ?h } UNION { resource:Q829941 property:P17 ?h } } . ?h rdf:type ontology:Q15617994 }
Saint-Rémy-en-Mauges New York Knicks
action filter_type
action union
action find
entity New York Knicks
relation country
action find
entity Saint-Rémy-en-Mauges
relation country
type designation for an administrative territorial entity
{'OR': [['New York Knicks', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Saint-Rémy-en-Mauges', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:New_York_Knicks property:country ?h } UNION { resource:Saint-Rémy-en-Mauges property:country ?h } } . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q30
SYSTEM
France, United States of America
Q142 Q30
OR((Q131364,P17,c(Q15617994)), (Q829941,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q131364
relation P17
action find
entity Q829941
relation P17
type Q15617994
[ANSWERS] New York Knicks or Saint-Rémy-en-Mauges belong to
{'OR': [['Q131364', 'P17', {'concept': 'Q15617994'}], ['Q829941', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q131364 property:P17 ?h } UNION { resource:Q829941 property:P17 ?h } } . ?h rdf:type ontology:Q15617994 }
France United States of America
France and United States of America New York Knicks or Saint-Rémy-en-Mauges belong to
France United States of America
action filter_type
action union
action find
entity New York Knicks
relation country
action find
entity Saint-Rémy-en-Mauges
relation country
type designation for an administrative territorial entity
{'OR': [['New York Knicks', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Saint-Rémy-en-Mauges', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:New_York_Knicks property:country ?h } UNION { resource:Saint-Rémy-en-Mauges property:country ?h } } . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q80753 Q7013764
P47 P17
Q15617994
USER
Which administrative territories are New York Military Academy present in or are bordered by Casalbuono ?
OR((Q7013764,P17,c(Q15617994)), (Q80753,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q7013764
relation P17
action find
entity Q80753
relation P47
type Q15617994
{'OR': [['Q7013764', 'P17', {'concept': 'Q15617994'}], ['Q80753', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q7013764 property:P17 ?x } UNION { resource:Q80753 property:P47 ?x } } . ?x rdf:type ontology:Q15617994 }
Casalbuono New York Military Academy
action filter_type
action union
action find
entity New York Military Academy
relation country
action find
entity Casalbuono
relation shares border with
type designation for an administrative territorial entity
{'OR': [['New York Military Academy', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Casalbuono', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:New_York_Military_Academy property:country ?x } UNION { resource:Casalbuono property:shares_border_with ?x } } . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q80757 Q30 Q81648 Q81085 Q52586
SYSTEM
Casaletto Spartano, United States of America, Sanza, Montesano sulla Marcellana, Lagonegro
Q80757 Q30 Q81648 Q81085 Q52586
OR((Q7013764,P17,c(Q15617994)), (Q80753,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q7013764
relation P17
action find
entity Q80753
relation P47
type Q15617994
[ANSWERS] in New York Military Academy are bordered
{'OR': [['Q7013764', 'P17', {'concept': 'Q15617994'}], ['Q80753', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q7013764 property:P17 ?x } UNION { resource:Q80753 property:P47 ?x } } . ?x rdf:type ontology:Q15617994 }
Casaletto Spartano United States of America Sanza Montesano sulla Marcellana Lagonegro
Casaletto Spartano, United States of America, Sanza, Montesano sulla Marcellana and Lagonegro in New York Military Academy are bordered
Casaletto Spartano United States of America Sanza Montesano sulla Marcellana Lagonegro
action filter_type
action union
action find
entity New York Military Academy
relation country
action find
entity Casalbuono
relation shares border with
type designation for an administrative territorial entity
{'OR': [['New York Military Academy', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Casalbuono', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:New_York_Military_Academy property:country ?x } UNION { resource:Casalbuono property:shares_border_with ?x } } . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P47
Q15617994
USER
How many administrative territories share border with that administrative territory ?
(Q80757,P47,c(Q15617994))
['Q80757', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q80757 property:P47 ?z . ?z rdf:type ontology:Q15617994 }
['Casaletto Spartano', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Casaletto_Spartano property:shares_border_with ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q30
SYSTEM
Did you mean United States of America ?
(Q80757,P47,c(Q15617994)) (Q30,P47,c(Q15617994)) (Q81648,P47,c(Q15617994)) (Q81085,P47,c(Q15617994)) (Q52586,P47,c(Q15617994))
[ANSWER]
['Q80757', 'P47', {'concept': 'Q15617994'}] ['Q30', 'P47', {'concept': 'Q15617994'}] ['Q81648', 'P47', {'concept': 'Q15617994'}] ['Q81085', 'P47', {'concept': 'Q15617994'}] ['Q52586', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q80757 property:P47 ?z . ?z rdf:type ontology:Q15617994 }
Did you mean United States of America ?
United States of America
['Casaletto Spartano', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['United States of America', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Sanza', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Montesano sulla Marcellana', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Lagonegro', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Casaletto_Spartano property:shares_border_with ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Casaletto Spartano. Could you tell me the answer for that?
(Q80757,P47,c(Q15617994))
Q80757
['Q80757', 'P47', {'concept': 'Q15617994'}]
['Casaletto Spartano', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
9
Q52586 Q81808 Q81733 Q80770 Q81648 Q81761 Q81089 Q52648 Q80753
(Q80757,P47,c(Q15617994))
[ANSWER]
['Q80757', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q80757 property:P47 ?z . ?z rdf:type ontology:Q15617994 }
Lagonegro Vibonati Torraca Caselle in Pittari Sanza Tortorella Morigerati Rivello Casalbuono
9
['Casaletto Spartano', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Casaletto_Spartano property:shares_border_with ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]