Simple Question (Direct)
Simple Question
Q1557595
P20
Q56061
USER
Which administrative territory is the place of death of Guy U. Hardy ?
(Q1557595,P20,c(Q56061))
action filter_type
action find
entity Q1557595
relation P20
type Q56061
['Q1557595', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q1557595 property:P20 ?s . ?s rdf:type ontology:Q56061 }
Guy U. Hardy
action filter_type
action find
entity Guy U. Hardy
relation place of death
type administrative territorial entity
['Guy U. Hardy', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Guy_U._Hardy property:place_of_death ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1003240
SYSTEM
Cañon City
Q1003240
(Q1557595,P20,c(Q56061))
action filter_type
action find
entity Q1557595
relation P20
type Q56061
[ANSWER] is the place of death of Guy U. Hardy
['Q1557595', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q1557595 property:P20 ?s . ?s rdf:type ontology:Q56061 }
Cañon City
Cañon City is the place of death of Guy U. Hardy
Cañon City
action filter_type
action find
entity Guy U. Hardy
relation place of death
type administrative territorial entity
['Guy U. Hardy', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Guy_U._Hardy property:place_of_death ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1557595
P39
Q12737077
USER
Which occupation was a position for which Guy U. Hardy was appointed ?
(Q1557595,P39,c(Q12737077))
action filter_type
action find
entity Q1557595
relation P39
type Q12737077
['Q1557595', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q1557595 property:P39 ?p . ?p rdf:type ontology:Q12737077 }
Guy U. Hardy
action filter_type
action find
entity Guy U. Hardy
relation position held
type occupation
['Guy U. Hardy', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Guy_U._Hardy property:position_held ?p . ?p rdf:type ontology:occupation }
[]
occupation
Q13218630
SYSTEM
United States representative
Q13218630
(Q1557595,P39,c(Q12737077))
action filter_type
action find
entity Q1557595
relation P39
type Q12737077
The [ANSWER] was a position for which Guy U. Hardy was appointed
['Q1557595', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q1557595 property:P39 ?p . ?p rdf:type ontology:Q12737077 }
United States representative
The United States representative was a position for which Guy U. Hardy was appointed
United States representative
action filter_type
action find
entity Guy U. Hardy
relation position held
type occupation
['Guy U. Hardy', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Guy_U._Hardy property:position_held ?p . ?p rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q13218630 Q30
P1001
Q15617994
USER
Does United States of America belong to jurisdiction of United States representative ?
(Q13218630,P1001,Q30)
action is_in
entity Q30
action find
entity Q13218630
relation P1001
['Q13218630', 'P1001', 'Q30']
ASK WHERE { resource:Q13218630 property:P1001 resource:Q30 }
United States representative United States of America
action is_in
entity United States of America
action find
entity United States representative
relation applies to jurisdiction
['United States representative', 'applies to jurisdiction', 'United States of America']
ASK WHERE { resource:United_States_representative property:applies_to_jurisdiction resource:United_States_of_America }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q13218630,P1001,Q30)
action is_in
entity Q30
action find
entity Q13218630
relation P1001
[ANSWER]
['Q13218630', 'P1001', 'Q30']
ASK WHERE { resource:Q13218630 property:P1001 resource:Q30 }
Yes
action is_in
entity United States of America
action find
entity United States representative
relation applies to jurisdiction
['United States representative', 'applies to jurisdiction', 'United States of America']
ASK WHERE { resource:United_States_representative property:applies_to_jurisdiction resource:United_States_of_America }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q21004849 Q1557595
P27
Q15617994
USER
Which administrative territories do Guy U. Hardy or Andreja Apostolović belong to ?
OR((Q1557595,P27,c(Q15617994)), (Q21004849,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1557595
relation P27
action find
entity Q21004849
relation P27
type Q15617994
{'OR': [['Q1557595', 'P27', {'concept': 'Q15617994'}], ['Q21004849', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q15617994 . { { resource:Q1557595 property:P27 ?r } UNION { resource:Q21004849 property:P27 ?r } } }
Andreja Apostolović Guy U. Hardy
action filter_type
action union
action find
entity Guy U. Hardy
relation country of citizenship
action find
entity Andreja Apostolović
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Guy U. Hardy', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Andreja Apostolović', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Guy_U._Hardy property:country_of_citizenship ?r } UNION { resource:Andreja_Apostolović property:country_of_citizenship ?r } } }
[]
designation for an administrative territorial entity
Q403 Q30
SYSTEM
Serbia, United States of America
Q403 Q30
OR((Q1557595,P27,c(Q15617994)), (Q21004849,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1557595
relation P27
action find
entity Q21004849
relation P27
type Q15617994
[ANSWERS] do Guy U. Hardy or Andreja Apostolović belong to
{'OR': [['Q1557595', 'P27', {'concept': 'Q15617994'}], ['Q21004849', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q15617994 . { { resource:Q1557595 property:P27 ?r } UNION { resource:Q21004849 property:P27 ?r } } }
Serbia United States of America
Serbia and United States of America do Guy U. Hardy or Andreja Apostolović belong to
Serbia United States of America
action filter_type
action union
action find
entity Guy U. Hardy
relation country of citizenship
action find
entity Andreja Apostolović
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Guy U. Hardy', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Andreja Apostolović', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Guy_U._Hardy property:country_of_citizenship ?r } UNION { resource:Andreja_Apostolović property:country_of_citizenship ?r } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q21004849
P19
Q56061
USER
Where was Andreja Apostolović born ?
(Q403,P19,c(Q56061)) (Q30,P19,c(Q56061))
action filter_type
action find
entity Q21004849
relation P19
type Q56061
['Q403', 'P19', {'concept': 'Q56061'}] ['Q30', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { resource:Q21004849 property:P19 ?f . ?f rdf:type ontology:Q56061 }
Andreja Apostolović
action filter_type
action find
entity Andreja Apostolović
relation place of birth
type administrative territorial entity
['Serbia', 'place of birth', {'concept': 'administrative territorial entity'}] ['United States of America', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Andreja_Apostolović property:place_of_birth ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q309343
SYSTEM
Pirot
Q309343
(Q403,P19,c(Q56061)) (Q30,P19,c(Q56061))
action filter_type
action find
entity Q21004849
relation P19
type Q56061
Andreja Apostolović was born in [ANSWER]
['Q403', 'P19', {'concept': 'Q56061'}] ['Q30', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { resource:Q21004849 property:P19 ?f . ?f rdf:type ontology:Q56061 }
Pirot
Andreja Apostolović was born in Pirot
Pirot
action filter_type
action find
entity Andreja Apostolović
relation place of birth
type administrative territorial entity
['Serbia', 'place of birth', {'concept': 'administrative territorial entity'}] ['United States of America', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Andreja_Apostolović property:place_of_birth ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P36
Q56061 Q515 Q15617994
USER
Which administrative territories are min number of administrative territories or cities the capital of ?
(c(Q15617994),P36,c(Q56061)|c(Q515))
action argmin
action union
action find_tuple_counts
relation P36
type Q15617994
type Q56061
action find_tuple_counts
relation P36
type Q15617994
type Q515
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q56061'}, {'concept': 'Q515'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?f ) AS ?h ) { SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) ?p WHERE { VALUES ( ?n ) { ( ontology:Q56061 ) ( ontology:Q515 ) } . ?b rdf:type ?n } GROUP BY ?p } } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?d ) ?x WHERE { ?u rdf:type ?s . VALUES ( ?s ) { ( ontology:Q56061 ) ( ontology:Q515 ) } } GROUP BY ?x } . FILTER ( ?d = ?h ) }
action argmin
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type administrative territorial entity
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type city
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'administrative territorial entity'}, {'concept': 'city'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?f ) AS ?h ) { SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) ?p WHERE { VALUES ( ?n ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } . ?b rdf:type ?n } GROUP BY ?p } } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?d ) ?x WHERE { ?u rdf:type ?s . VALUES ( ?s ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } } GROUP BY ?x } . FILTER ( ?d = ?h ) }
[]
administrative territorial entity city designation for an administrative territorial entity
Q224 Q739 Q965
SYSTEM
Croatia, Colombia, Burkina Faso
Q12631 Q2991354 Q3368 Q1111401 Q504637 Q2998020 Q3044731 Q2466631 Q12689 Q2527360 Q699731 Q3377 Q3372 Q1742192 Q3093 Q4464924 Q2344966 Q3259 Q12594 Q739 Q733 Q16628524 Q12798 Q12792 Q1284 Q1443 Q541811 Q1458 Q14551680 Q12700 Q12703 Q12709 Q12569 Q12574 Q12642 Q21296012 Q3216 Q3194 Q541589 Q12804 Q12808 Q1961264 Q3326 Q3286 Q12589 Q3266 Q3105 Q731547 Q33788 Q709 Q12740 Q12745 Q12779 Q2093388 Q12607 Q290739 Q598193 Q12576 Q1452646 Q2281221 Q1508919 Q12694 Q12515 Q12517 Q3364 Q3148 Q5613245 Q280312 Q12675 Q12584 Q12580 Q3131 Q12788 Q12784 Q12782 Q3118738 Q686312 Q697 Q12730 Q12736 Q2039306 Q662056 Q12657 Q12652 Q12556 Q694594 Q874 Q12816 Q4854468 Q2528268 Q3353 Q3357 Q492437 Q389004 Q492430 Q3278 Q3184 Q9073753 Q2900529 Q12772 Q1090678 Q19786899 Q1999970 Q155019 Q2348751 Q107426 Q511365 Q1270568 Q34762 Q793437 Q1270623 Q580447 Q10957559 Q965 Q962 Q2344833 Q3125 Q3120 Q3110307 Q12722 Q2039314 Q12553 Q12620 Q12626 Q12543 Q12563 Q426025 Q474421 Q3349 Q3083 Q3249 Q3164 Q12761 Q12765 Q224 Q691265 Q313175 Q3334 Q12572 Q2996404 Q12578 Q12679 Q3846423 Q176 Q161258 Q4496152 Q3514973 Q3113 Q12789 Q1234961 Q1222 Q5192588 Q672 Q12758 Q12753 Q12751 Q12564
(c(Q15617994),P36,c(Q56061)|c(Q515))
action argmin
action union
action find_tuple_counts
relation P36
type Q15617994
type Q56061
action find_tuple_counts
relation P36
type Q15617994
type Q515
[ANSWERS] are min number of administrative territories or cities the capital of
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q56061'}, {'concept': 'Q515'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?f ) AS ?h ) { SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) ?p WHERE { VALUES ( ?n ) { ( ontology:Q56061 ) ( ontology:Q515 ) } . ?b rdf:type ?n } GROUP BY ?p } } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?d ) ?x WHERE { ?u rdf:type ?s . VALUES ( ?s ) { ( ontology:Q56061 ) ( ontology:Q515 ) } } GROUP BY ?x } . FILTER ( ?d = ?h ) }
Meuse Aquiles Serdán Municipality Essonne Kispest District Alta Verapaz Department Corse Guyane Chiautla de Tapia Municipality Pas-de-Calais Stura Wied Eure-et-Loir Eure King's Lynn and West Norfolk Aisne Tugulymsky District Netrokona District Cantal Marne Colombia Paraguay San Salvador el Verde municipality Vendée Vaucluse Abruzzo Molise Ems-Oriental Calabria Principality of Lippe Hautes-Pyrénées Pyrénées-Atlantiques Pyrénées-Orientales Loire Loiret Morbihan Amatitlán Aveyron Aube Ems-Supérieur Vienne Haute-Vienne Tecámac Municipality Corrèze Cher Manche Charente Vosges Lippe New Caledonia Marshall Islands Sarthe Savoie Tarn-et-Garonne Sunamganj District Haute-Marne Sesia Apennins Lot Montenotte Principality of Orange Marengo Puy-de-Dôme Gard Gers Drôme Ardèche Guadalupe Municipality Principality of Lüneburg Oise Maine-et-Loire Lozère Alpes-de-Haute-Provence Val-de-Marne Val-d'Oise Territoire de Belfort Guanentá Province Duchy of Amalfi Nauru Haute-Saône Saône-et-Loire Jamalpur District Cushamen Department Nièvre Moselle Indre-et-Loire Bremen-Verden Turkmenistan Yonne Bandava Mont-Blanc Creuse Dordogne Bouches-du-Weser Wallachia Bouches-de-l'Elbe Charente-Maritime Ariège San Vicente Tancuayalab municipality Bezirk Lothringen Tarn Sègre Magyaróvár District Upper Alsace Duchy of Lorraine Kurigram District Anjou Arvika Municipality Ems Principality of Bayreuth Bergantiños Meurthe Duchy of Styria Moldavia Burkina Faso Benin Kishoreganj District Hautes-Alpes Jura Golo Haut-Rhin Sherpur District Indre Mayenne Meurthe-et-Moselle Hauts-de-Seine Landes Duchy of Savoy Principality of Fürstenberg Côtes-d'Armor Ain Calvados Ardennes Seine-Saint-Denis Deux-Sèvres Croatia Mont-Terrible Saxe-Lauenburg Haute-Corse Haute-Loire Alushta municipality Lot-et-Garonne Orne Viesca Municipality Quebec Clipperton Island Khartsyzk Municipality Tanaro Allier Var Doire Aosta Valley Cuenca District, Huancavelica Tuvalu Seine-Maritime Seine-et-Marne Haute-Savoie Loir-et-Cher
Croatia, Colombia and Burkina Faso are min number of administrative territories or cities the capital of
Croatia Colombia Burkina Faso
action argmin
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type administrative territorial entity
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type city
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'administrative territorial entity'}, {'concept': 'city'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?f ) AS ?h ) { SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) ?p WHERE { VALUES ( ?n ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } . ?b rdf:type ?n } GROUP BY ?p } } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?d ) ?x WHERE { ?u rdf:type ?s . VALUES ( ?s ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } } GROUP BY ?x } . FILTER ( ?d = ?h ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q224 Q334
P530
Q1048835
USER
How many political territories are known to have diplomatic connections with Croatia and Singapore ?
(c(Q1048835),P530,Q224) (c(Q1048835),P530,Q334)
action count
action intersection
action filter_type
action find_reverse
entity Q224
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q334
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q224'] [{'concept': 'Q1048835'}, 'P530', 'Q334']
SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) WHERE { ?c property:P530 resource:Q224 . ?c rdf:type ontology:Q1048835 . ?c property:P530 resource:Q334 . ?c rdf:type ontology:Q1048835 }
Croatia Singapore
action count
action intersection
action filter_type
action find_reverse
entity Croatia
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Singapore
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Croatia'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Singapore']
SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) WHERE { ?c property:diplomatic_relation resource:Croatia . ?c rdf:type ontology:political_territorial_entity . ?c property:diplomatic_relation resource:Singapore . ?c rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
2
Q408 Q183
(c(Q1048835),P530,Q224) (c(Q1048835),P530,Q334)
action count
action intersection
action filter_type
action find_reverse
entity Q224
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q334
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', 'Q224'] [{'concept': 'Q1048835'}, 'P530', 'Q334']
SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) WHERE { ?c property:P530 resource:Q224 . ?c rdf:type ontology:Q1048835 . ?c property:P530 resource:Q334 . ?c rdf:type ontology:Q1048835 }
Australia Germany
2
action count
action intersection
action filter_type
action find_reverse
entity Croatia
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Singapore
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Croatia'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Singapore']
SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) WHERE { ?c property:diplomatic_relation resource:Croatia . ?c rdf:type ontology:political_territorial_entity . ?c property:diplomatic_relation resource:Singapore . ?c rdf:type ontology:political_territorial_entity }
[]