Simple Question (Direct)
Simple Question
Q7490216
P27
Q15617994
USER
Which administrative territory does Sharon Stewart-Peregoy belong to ?
(Q7490216,P27,c(Q15617994))
action filter_type
action find
entity Q7490216
relation P27
type Q15617994
['Q7490216', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q7490216 property:P27 ?p . ?p rdf:type ontology:Q15617994 }
Sharon Stewart-Peregoy
action filter_type
action find
entity Sharon Stewart-Peregoy
relation country of citizenship
type designation for an administrative territorial entity
['Sharon Stewart-Peregoy', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Sharon_Stewart-Peregoy property:country_of_citizenship ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q7490216,P27,c(Q15617994))
action filter_type
action find
entity Q7490216
relation P27
type Q15617994
Sharon Stewart-Peregoy belongs to [ANSWER]
['Q7490216', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q7490216 property:P27 ?p . ?p rdf:type ontology:Q15617994 }
United States of America
Sharon Stewart-Peregoy belongs to United States of America
United States of America
action filter_type
action find
entity Sharon Stewart-Peregoy
relation country of citizenship
type designation for an administrative territorial entity
['Sharon Stewart-Peregoy', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Sharon_Stewart-Peregoy property:country_of_citizenship ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q30
P859
Q939954
USER
Who did that administrative territory sponsor ?
(c(Q939954),P859,Q30)
action filter_type
action find_reverse
entity Q30
relation P859
type Q939954
[{'concept': 'Q939954'}, 'P859', 'Q30']
SELECT DISTINCT ?p WHERE { ?p property:P859 resource:Q30 . ?p rdf:type ontology:Q939954 }
United States of America
action filter_type
action find_reverse
entity United States of America
relation sponsor
type Magnetic confinement fusion
[{'concept': 'Magnetic confinement fusion'}, 'sponsor', 'United States of America']
SELECT DISTINCT ?p WHERE { ?p property:sponsor resource:United_States_of_America . ?p rdf:type ontology:Magnetic_confinement_fusion }
[]
Magnetic confinement fusion
Q191788
SYSTEM
ITER
Q191788
(c(Q939954),P859,Q30)
action filter_type
action find_reverse
entity Q30
relation P859
type Q939954
That administrative territory sponsored by [ANSWER]
[{'concept': 'Q939954'}, 'P859', 'Q30']
SELECT DISTINCT ?p WHERE { ?p property:P859 resource:Q30 . ?p rdf:type ontology:Q939954 }
ITER
That administrative territory sponsored by ITER
ITER
action filter_type
action find_reverse
entity United States of America
relation sponsor
type Magnetic confinement fusion
[{'concept': 'Magnetic confinement fusion'}, 'sponsor', 'United States of America']
SELECT DISTINCT ?p WHERE { ?p property:sponsor resource:United_States_of_America . ?p rdf:type ontology:Magnetic_confinement_fusion }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30
P38
Q8142
USER
What is the currency of United States of America ?
(Q30,P38,c(Q8142))
action filter_type
action find
entity Q30
relation P38
type Q8142
['Q30', 'P38', {'concept': 'Q8142'}]
SELECT DISTINCT ?d WHERE { resource:Q30 property:P38 ?d . ?d rdf:type ontology:Q8142 }
United States of America
action filter_type
action find
entity United States of America
relation currency
type currency
['United States of America', 'currency', {'concept': 'currency'}]
SELECT DISTINCT ?d WHERE { resource:United_States_of_America property:currency ?d . ?d rdf:type ontology:currency }
[]
currency
Q4917
SYSTEM
United States dollar
Q4917
(Q30,P38,c(Q8142))
action filter_type
action find
entity Q30
relation P38
type Q8142
The currency of United States of America is the [ANSWER]
['Q30', 'P38', {'concept': 'Q8142'}]
SELECT DISTINCT ?d WHERE { resource:Q30 property:P38 ?d . ?d rdf:type ontology:Q8142 }
United States dollar
The currency of United States of America is the United States dollar
United States dollar
action filter_type
action find
entity United States of America
relation currency
type currency
['United States of America', 'currency', {'concept': 'currency'}]
SELECT DISTINCT ?d WHERE { resource:United_States_of_America property:currency ?d . ?d rdf:type ontology:currency }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q29999
Q8142
USER
And also tell me about Kingdom of the Netherlands?
(Q29999,P38,c(Q8142))
action filter_type
action find
entity Q29999
relation P38
type Q8142
['Q29999', 'P38', {'concept': 'Q8142'}]
SELECT DISTINCT ?j WHERE { resource:Q29999 property:P38 ?j . ?j rdf:type ontology:Q8142 }
Kingdom of the Netherlands
action filter_type
action find
entity Kingdom of the Netherlands
relation currency
type currency
['Kingdom of the Netherlands', 'currency', {'concept': 'currency'}]
SELECT DISTINCT ?j WHERE { resource:Kingdom_of_the_Netherlands property:currency ?j . ?j rdf:type ontology:currency }
[]
currency
Q4917 Q232270 Q522701
SYSTEM
United States dollar, Aruban florin, Netherlands Antillean guilder
Q4917 Q232270 Q522701
(Q29999,P38,c(Q8142))
action filter_type
action find
entity Q29999
relation P38
type Q8142
[ANSWERS]
['Q29999', 'P38', {'concept': 'Q8142'}]
SELECT DISTINCT ?j WHERE { resource:Q29999 property:P38 ?j . ?j rdf:type ontology:Q8142 }
United States dollar Aruban florin Netherlands Antillean guilder
United States dollar Aruban florin Netherlands Antillean guilder
action filter_type
action find
entity Kingdom of the Netherlands
relation currency
type currency
['Kingdom of the Netherlands', 'currency', {'concept': 'currency'}]
SELECT DISTINCT ?j WHERE { resource:Kingdom_of_the_Netherlands property:currency ?j . ?j rdf:type ontology:currency }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P122
Q4164871 Q43229 Q15617994
USER
Which administrative territories have min number of positions and organizations as the form of government ?
(c(Q15617994),P122,c(Q4164871)|c(Q43229))
action argmin
action union
action find_tuple_counts
relation P122
type Q15617994
type Q4164871
action find_tuple_counts
relation P122
type Q15617994
type Q43229
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q4164871'}, {'concept': 'Q43229'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MIN ( ?u ) AS ?m ) { SELECT DISTINCT ?c ( COUNT ( ?r ) AS ?u ) WHERE { { ?c property:P122 ?r . ?c rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q4164871 } UNION { ?c property:P122 ?r . ?c rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q43229 } } GROUP BY ?c } } . { SELECT DISTINCT ?n ( COUNT ( ?h ) AS ?a ) WHERE { { ?n property:P122 ?h . ?n rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q4164871 } UNION { ?n property:P122 ?h . ?n rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q43229 } } GROUP BY ?n } . FILTER ( ?a = ?m ) }
action argmin
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type position
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type organization
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'position'}, {'concept': 'organization'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MIN ( ?u ) AS ?m ) { SELECT DISTINCT ?c ( COUNT ( ?r ) AS ?u ) WHERE { { ?c property:basic_form_of_government ?r . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:position } UNION { ?c property:basic_form_of_government ?r . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:organization } } GROUP BY ?c } } . { SELECT DISTINCT ?n ( COUNT ( ?h ) AS ?a ) WHERE { { ?n property:basic_form_of_government ?h . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:position } UNION { ?n property:basic_form_of_government ?h . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:organization } } GROUP BY ?n } . FILTER ( ?a = ?m ) }
[]
position organization designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q702 Q804 Q154547 Q801 Q805 Q419 Q668 Q414 Q142 Q165116 Q145 Q265 Q1130767 Q833 Q711 Q717 Q837 Q208500 Q541991 Q399 Q258 Q45 Q159 Q43 Q155 Q796 Q794 Q889 Q884 Q958 Q689837 Q315667 Q158290 Q153136 Q33 Q32 Q31 Q30 Q37 Q34 Q1133252 Q39 Q38 Q423 Q953 Q29999 Q153091 Q280312 Q1130957 Q236 Q230 Q232 Q20 Q1045 Q27 Q28 Q29 Q189 Q843 Q184 Q876826 Q347 Q3462133 Q227 Q225 Q224 Q815731 Q96 Q228 Q17 Q1989 Q902 Q725731 Q1033 Q115 Q754 Q212 Q213 Q215 Q1483510 Q917 Q970 Q760 Q574 Q694594 Q1132344 Q77 Q199688 Q878 Q948 Q811 Q1011 Q1013 Q1049
(c(Q15617994),P122,c(Q4164871)|c(Q43229))
action argmin
action union
action find_tuple_counts
relation P122
type Q15617994
type Q4164871
action find_tuple_counts
relation P122
type Q15617994
type Q43229
[ANSWERS] have min number of positions and organizations as the form of government
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q4164871'}, {'concept': 'Q43229'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MIN ( ?u ) AS ?m ) { SELECT DISTINCT ?c ( COUNT ( ?r ) AS ?u ) WHERE { { ?c property:P122 ?r . ?c rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q4164871 } UNION { ?c property:P122 ?r . ?c rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q43229 } } GROUP BY ?c } } . { SELECT DISTINCT ?n ( COUNT ( ?h ) AS ?a ) WHERE { { ?n property:P122 ?h . ?n rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q4164871 } UNION { ?n property:P122 ?h . ?n rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q43229 } } GROUP BY ?n } . FILTER ( ?a = ?m ) }
Federated States of Micronesia Panama duchy Israel Yemen Peru India Argentina France grand duchy United Kingdom Uzbekistan Bear Creek Village Malaysia Mongolia Venezuela Nepal principality Hummelfeld Armenia South Africa Portugal Russia Turkey Brazil Iraq Iran Afghanistan South Korea South Sudan Spanish Sahara Saxe-Weimar Duchy of Lucca Habsburg Empire Finland Luxembourg Belgium United States of America Lithuania Sweden Conyngham Switzerland Italy North Korea Zambia Kingdom of the Netherlands Duchy of Prussia Principality of Lüneburg Courtdale Montenegro Georgia Kazakhstan Norway Somalia Ireland Hungary Spain Iceland Pakistan Belarus Ellwangen Abbey Liechtenstein Saxe-Coburg and Gotha Azerbaijan Bosnia and Herzegovina Croatia Principality of Bulgaria Mexico Andorra Japan Saskatchewan Bangladesh Ashley, Pennsylvania Nigeria Ethiopia Trinidad and Tobago Ukraine Czech Republic Slovenia Principality of Wales Bhutan Comoros Saint Lucia East Timor Bremen-Verden Avoca Uruguay Almohad United Arab Emirates Tunisia Nicaragua Cape Verde Lesotho Sudan
Italy, Brazil and United States of America have min number of positions and organizations as the form of government
Italy Brazil United States of America
action argmin
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type position
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type organization
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'position'}, {'concept': 'organization'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MIN ( ?u ) AS ?m ) { SELECT DISTINCT ?c ( COUNT ( ?r ) AS ?u ) WHERE { { ?c property:basic_form_of_government ?r . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:position } UNION { ?c property:basic_form_of_government ?r . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:organization } } GROUP BY ?c } } . { SELECT DISTINCT ?n ( COUNT ( ?h ) AS ?a ) WHERE { { ?n property:basic_form_of_government ?h . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:position } UNION { ?n property:basic_form_of_government ?h . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:organization } } GROUP BY ?n } . FILTER ( ?a = ?m ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have ambassadorial relations with max number of administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?e ) { SELECT DISTINCT ?j ( COUNT ( ?x ) AS ?c ) WHERE { ?j property:P530 ?x . ?x rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q1048835 } GROUP BY ?j } } . FILTER ( ?y = ?e ) . { SELECT DISTINCT ?p ( COUNT ( ?a ) AS ?y ) WHERE { ?p property:P530 ?a . ?p rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q15617994 } GROUP BY ?p } }
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?e ) { SELECT DISTINCT ?j ( COUNT ( ?x ) AS ?c ) WHERE { ?j property:diplomatic_relation ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:political_territorial_entity } GROUP BY ?j } } . FILTER ( ?y = ?e ) . { SELECT DISTINCT ?p ( COUNT ( ?a ) AS ?y ) WHERE { ?p property:diplomatic_relation ?a . ?p rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } }
[]
designation for an administrative territorial entity political territorial entity
Q183
SYSTEM
Germany
Q183
(c(Q1048835),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWER] have ambassadorial relations with max number of administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?e ) { SELECT DISTINCT ?j ( COUNT ( ?x ) AS ?c ) WHERE { ?j property:P530 ?x . ?x rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q1048835 } GROUP BY ?j } } . FILTER ( ?y = ?e ) . { SELECT DISTINCT ?p ( COUNT ( ?a ) AS ?y ) WHERE { ?p property:P530 ?a . ?p rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q15617994 } GROUP BY ?p } }
Germany
Germany have ambassadorial relations with max number of administrative territories
Germany
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?e ) { SELECT DISTINCT ?j ( COUNT ( ?x ) AS ?c ) WHERE { ?j property:diplomatic_relation ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:political_territorial_entity } GROUP BY ?j } } . FILTER ( ?y = ?e ) . { SELECT DISTINCT ?p ( COUNT ( ?a ) AS ?y ) WHERE { ?p property:diplomatic_relation ?a . ?p rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q183 Q17363863
P530
Q15617994
USER
Does Ebini have a diplomatic relationship with that political territory ?
(Q183,P530,Q17363863)
action is_in
entity Q17363863
action find
entity Q183
relation P530
['Q183', 'P530', 'Q17363863']
ASK WHERE { resource:Q183 property:P530 resource:Q17363863 }
Germany Ebini
action is_in
entity Ebini
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Ebini']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Ebini }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q183,P530,Q17363863)
action is_in
entity Q17363863
action find
entity Q183
relation P530
[ANSWER]
['Q183', 'P530', 'Q17363863']
ASK WHERE { resource:Q183 property:P530 resource:Q17363863 }
No
action is_in
entity Ebini
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Ebini']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Ebini }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q155 Q1049 Q54717
P530
Q15617994
USER
Does Brazil have ambassadorial relations with Sudan and Limbadi ?
(Q155,P530,Q1049) (Q155,P530,Q54717)
action is_in
entity Q155
action intersection
action find_reverse
entity Q1049
relation P530
action find_reverse
entity Q54717
relation P530
['Q155', 'P530', 'Q1049'] ['Q155', 'P530', 'Q54717']
ASK WHERE { resource:Q155 property:P530 resource:Q54717 . resource:Q155 property:P530 resource:Q1049 }
Brazil Sudan Limbadi
action is_in
entity Brazil
action intersection
action find_reverse
entity Sudan
relation diplomatic relation
action find_reverse
entity Limbadi
relation diplomatic relation
['Brazil', 'diplomatic relation', 'Sudan'] ['Brazil', 'diplomatic relation', 'Limbadi']
ASK WHERE { resource:Brazil property:diplomatic_relation resource:Limbadi . resource:Brazil property:diplomatic_relation resource:Sudan }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q155,P530,Q1049) (Q155,P530,Q54717)
action is_in
entity Q155
action intersection
action find_reverse
entity Q1049
relation P530
action find_reverse
entity Q54717
relation P530
[ANSWER]
['Q155', 'P530', 'Q1049'] ['Q155', 'P530', 'Q54717']
ASK WHERE { resource:Q155 property:P530 resource:Q54717 . resource:Q155 property:P530 resource:Q1049 }
YES and NO respectively
action is_in
entity Brazil
action intersection
action find_reverse
entity Sudan
relation diplomatic relation
action find_reverse
entity Limbadi
relation diplomatic relation
['Brazil', 'diplomatic relation', 'Sudan'] ['Brazil', 'diplomatic relation', 'Limbadi']
ASK WHERE { resource:Brazil property:diplomatic_relation resource:Limbadi . resource:Brazil property:diplomatic_relation resource:Sudan }
[]