Simple Question (Direct)
Simple Question
Q3616273
P27
Q15617994
USER
Which administrative territory does Andrew Jarecki belong to ?
(Q3616273,P27,c(Q15617994))
action filter_type
action find
entity Q3616273
relation P27
type Q15617994
['Q3616273', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q3616273 property:P27 ?p . ?p rdf:type ontology:Q15617994 }
Andrew Jarecki
action filter_type
action find
entity Andrew Jarecki
relation country of citizenship
type designation for an administrative territorial entity
['Andrew Jarecki', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Andrew_Jarecki 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
(Q3616273,P27,c(Q15617994))
action filter_type
action find
entity Q3616273
relation P27
type Q15617994
Andrew Jarecki belongs to [ANSWER]
['Q3616273', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q3616273 property:P27 ?p . ?p rdf:type ontology:Q15617994 }
United States of America
Andrew Jarecki belongs to United States of America
United States of America
action filter_type
action find
entity Andrew Jarecki
relation country of citizenship
type designation for an administrative territorial entity
['Andrew Jarecki', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Andrew_Jarecki property:country_of_citizenship ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q30
P194
Q11204
USER
Which legislature is the legislative body for that administrative territory ?
(Q30,P194,c(Q11204))
action filter_type
action find
entity Q30
relation P194
type Q11204
['Q30', 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q11204 . resource:Q30 property:P194 ?q }
United States of America
action filter_type
action find
entity United States of America
relation legislative body
type legislature
['United States of America', 'legislative body', {'concept': 'legislature'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:legislature . resource:United_States_of_America property:legislative_body ?q }
[]
legislature
Q11268
SYSTEM
United States Congress
Q11268
(Q30,P194,c(Q11204))
action filter_type
action find
entity Q30
relation P194
type Q11204
The [ANSWER] is the legislative body for that administrative territory
['Q30', 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q11204 . resource:Q30 property:P194 ?q }
United States Congress
The United States Congress is the legislative body for that administrative territory
United States Congress
action filter_type
action find
entity United States of America
relation legislative body
type legislature
['United States of America', 'legislative body', {'concept': 'legislature'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:legislature . resource:United_States_of_America property:legislative_body ?q }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P361
Q11204 Q43229 Q874405
USER
How many legislatures are lesser number of organizations and social groups a part of than that legislature ?
(c(Q43229)|c(Q874405),P361,c(Q11204))
action count
action less
action union
action find_reverse_tuple_counts
relation P361
type Q11204
type Q43229
action find_reverse_tuple_counts
relation P361
type Q11204
type Q874405
action count
action filter_multi_types
action find_reverse
entity Q11268
relation P361
type Q43229
type Q874405
[[{'concept': 'Q43229'}, {'concept': 'Q874405'}], 'P361', {'concept': 'Q11204'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) ?v WHERE { { ?v rdf:type ontology:Q11204 . ?j rdf:type ontology:Q43229 . ?j property:P361 ?v } UNION { ?j property:P361 ?v . ?j rdf:type ontology:Q874405 . ?v rdf:type ontology:Q11204 } } GROUP BY ?v } . FILTER ( ?i < ?q ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?q ) WHERE { ?o property:P361 resource:Q11268 . { ?o rdf:type ?k . VALUES ( ?k ) { ( ontology:Q43229 ) ( ontology:Q874405 ) } } } } }
action count
action less
action union
action find_reverse_tuple_counts
relation part of
type legislature
type organization
action find_reverse_tuple_counts
relation part of
type legislature
type social group
action count
action filter_multi_types
action find_reverse
entity United States Congress
relation part of
type organization
type social group
[[{'concept': 'organization'}, {'concept': 'social group'}], 'part of', {'concept': 'legislature'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) ?v WHERE { { ?v rdf:type ontology:legislature . ?j rdf:type ontology:organization . ?j property:part_of ?v } UNION { ?j property:part_of ?v . ?j rdf:type ontology:social_group . ?v rdf:type ontology:legislature } } GROUP BY ?v } . FILTER ( ?i < ?q ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?q ) WHERE { ?o property:part_of resource:United_States_Congress . { ?o rdf:type ?k . VALUES ( ?k ) { ( ontology:organization ) ( ontology:social_group ) } } } } }
[]
legislature organization social group
SYSTEM
0
(c(Q43229)|c(Q874405),P361,c(Q11204))
action count
action less
action union
action find_reverse_tuple_counts
relation P361
type Q11204
type Q43229
action find_reverse_tuple_counts
relation P361
type Q11204
type Q874405
action count
action filter_multi_types
action find_reverse
entity Q11268
relation P361
type Q43229
type Q874405
[ANSWER]
[[{'concept': 'Q43229'}, {'concept': 'Q874405'}], 'P361', {'concept': 'Q11204'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) ?v WHERE { { ?v rdf:type ontology:Q11204 . ?j rdf:type ontology:Q43229 . ?j property:P361 ?v } UNION { ?j property:P361 ?v . ?j rdf:type ontology:Q874405 . ?v rdf:type ontology:Q11204 } } GROUP BY ?v } . FILTER ( ?i < ?q ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?q ) WHERE { ?o property:P361 resource:Q11268 . { ?o rdf:type ?k . VALUES ( ?k ) { ( ontology:Q43229 ) ( ontology:Q874405 ) } } } } }
0
action count
action less
action union
action find_reverse_tuple_counts
relation part of
type legislature
type organization
action find_reverse_tuple_counts
relation part of
type legislature
type social group
action count
action filter_multi_types
action find_reverse
entity United States Congress
relation part of
type organization
type social group
[[{'concept': 'organization'}, {'concept': 'social group'}], 'part of', {'concept': 'legislature'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) ?v WHERE { { ?v rdf:type ontology:legislature . ?j rdf:type ontology:organization . ?j property:part_of ?v } UNION { ?j property:part_of ?v . ?j rdf:type ontology:social_group . ?v rdf:type ontology:legislature } } GROUP BY ?v } . FILTER ( ?i < ?q ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?q ) WHERE { ?o property:part_of resource:United_States_Congress . { ?o rdf:type ?k . VALUES ( ?k ) { ( ontology:organization ) ( ontology:social_group ) } } } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q30
P750
Q838948 Q15416
USER
How many works of art and television programs are United States of America a distributor of ?
(c(Q838948),P750,Q30) (c(Q15416),P750,Q30)
action count
action union
action filter_type
action find_reverse
entity Q30
relation P750
type Q838948
action filter_type
action find_reverse
entity Q30
relation P750
type Q15416
[{'concept': 'Q838948'}, 'P750', 'Q30'] [{'concept': 'Q15416'}, 'P750', 'Q30']
SELECT DISTINCT ( COUNT ( ?v ) AS ?a ) WHERE { VALUES ( ?m ) { ( ontology:Q838948 ) ( ontology:Q15416 ) } . ?v rdf:type ?m }
United States of America
action count
action union
action filter_type
action find_reverse
entity United States of America
relation distributor
type work of art
action filter_type
action find_reverse
entity United States of America
relation distributor
type television program
[{'concept': 'work of art'}, 'distributor', 'United States of America'] [{'concept': 'television program'}, 'distributor', 'United States of America']
SELECT DISTINCT ( COUNT ( ?v ) AS ?a ) WHERE { VALUES ( ?m ) { ( ontology:work_of_art ) ( ontology:television_program ) } . ?v rdf:type ?m }
[]
work of art television program
SYSTEM
2 works of art and 1 television programs
Q53113 Q1936875 Q5491136
(c(Q838948),P750,Q30) (c(Q15416),P750,Q30)
action count
action union
action filter_type
action find_reverse
entity Q30
relation P750
type Q838948
action filter_type
action find_reverse
entity Q30
relation P750
type Q15416
[ANSWER]
[{'concept': 'Q838948'}, 'P750', 'Q30'] [{'concept': 'Q15416'}, 'P750', 'Q30']
SELECT DISTINCT ( COUNT ( ?v ) AS ?a ) WHERE { VALUES ( ?m ) { ( ontology:Q838948 ) ( ontology:Q15416 ) } . ?v rdf:type ?m }
High School Musical 2 Dead Birds Franklin's Magic Christmas
2 works of art and 1 television programs
action count
action union
action filter_type
action find_reverse
entity United States of America
relation distributor
type work of art
action filter_type
action find_reverse
entity United States of America
relation distributor
type television program
[{'concept': 'work of art'}, 'distributor', 'United States of America'] [{'concept': 'television program'}, 'distributor', 'United States of America']
SELECT DISTINCT ( COUNT ( ?v ) AS ?a ) WHERE { VALUES ( ?m ) { ( ontology:work_of_art ) ( ontology:television_program ) } . ?v rdf:type ?m }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P194
Q11204 Q56061
USER
Which administrative territories have max number of legislatures as their representative body ?
(c(Q56061),P194,c(Q11204))
action argmax
action find_tuple_counts
relation P194
type Q56061
type Q11204
[{'concept': 'Q56061'}, 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?g ) { SELECT DISTINCT ?t ( COUNT ( ?x ) AS ?r ) WHERE { ?t property:P194 ?x . ?t rdf:type ontology:Q56061 . ?x rdf:type ontology:Q11204 } GROUP BY ?t } } . { SELECT DISTINCT ?m ( COUNT ( ?d ) AS ?v ) WHERE { ?m property:P194 ?d . ?m rdf:type ontology:Q56061 . ?d rdf:type ontology:Q11204 } GROUP BY ?m } . FILTER ( ?v = ?g ) }
action argmax
action find_tuple_counts
relation legislative body
type administrative territorial entity
type legislature
[{'concept': 'administrative territorial entity'}, 'legislative body', {'concept': 'legislature'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?g ) { SELECT DISTINCT ?t ( COUNT ( ?x ) AS ?r ) WHERE { ?t property:legislative_body ?x . ?t rdf:type ontology:administrative_territorial_entity . ?x rdf:type ontology:legislature } GROUP BY ?t } } . { SELECT DISTINCT ?m ( COUNT ( ?d ) AS ?v ) WHERE { ?m property:legislative_body ?d . ?m rdf:type ontology:administrative_territorial_entity . ?d rdf:type ontology:legislature } GROUP BY ?m } . FILTER ( ?v = ?g ) }
[]
legislature administrative territorial entity
Q90 Q62 Q61
SYSTEM
Paris, San Francisco, Washington, D.C.
Q90 Q179313 Q61 Q172438 Q237 Q11703 Q26 Q62
(c(Q56061),P194,c(Q11204))
action argmax
action find_tuple_counts
relation P194
type Q56061
type Q11204
[ANSWERS]
[{'concept': 'Q56061'}, 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?g ) { SELECT DISTINCT ?t ( COUNT ( ?x ) AS ?r ) WHERE { ?t property:P194 ?x . ?t rdf:type ontology:Q56061 . ?x rdf:type ontology:Q11204 } GROUP BY ?t } } . { SELECT DISTINCT ?m ( COUNT ( ?d ) AS ?v ) WHERE { ?m property:P194 ?d . ?m rdf:type ontology:Q56061 . ?d rdf:type ontology:Q11204 } GROUP BY ?m } . FILTER ( ?v = ?g ) }
Paris Alderney Washington, D.C. Peterborough Vatican City United States Virgin Islands Northern Ireland San Francisco
Paris, San Francisco and Washington, D.C. have max number of legislatures as their representative body
Paris San Francisco Washington, D.C.
action argmax
action find_tuple_counts
relation legislative body
type administrative territorial entity
type legislature
[{'concept': 'administrative territorial entity'}, 'legislative body', {'concept': 'legislature'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?g ) { SELECT DISTINCT ?t ( COUNT ( ?x ) AS ?r ) WHERE { ?t property:legislative_body ?x . ?t rdf:type ontology:administrative_territorial_entity . ?x rdf:type ontology:legislature } GROUP BY ?t } } . { SELECT DISTINCT ?m ( COUNT ( ?d ) AS ?v ) WHERE { ?m property:legislative_body ?d . ?m rdf:type ontology:administrative_territorial_entity . ?d rdf:type ontology:legislature } GROUP BY ?m } . FILTER ( ?v = ?g ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q877216
P190
Q515
USER
Are Shisō twin town of those administrative territories ?
(Q877216,P190,Q90) (Q877216,P190,Q62) (Q877216,P190,Q61)
action is_in
entity prev_answer
action find
entity Q877216
relation P190
['Q877216', 'P190', 'Q90'] ['Q877216', 'P190', 'Q62'] ['Q877216', 'P190', 'Q61']
ASK WHERE { VALUES ( ?h ) { ( resource:Q90 ) ( resource:Q179313 ) ( resource:Q61 ) } . resource:Q877216 property:P190 ?h }
Shisō
action is_in
entity prev_answer
action find
entity Shisō
relation sister city
['Shisō', 'sister city', 'Paris'] ['Shisō', 'sister city', 'San Francisco'] ['Shisō', 'sister city', 'Washington, D.C.']
ASK WHERE { VALUES ( ?h ) { ( resource:Paris ) ( resource:Alderney ) ( resource:Washington,_D.C. ) } . resource:Shisō property:sister_city ?h }
[]
city
SYSTEM
NO
(Q877216,P190,Q90) (Q877216,P190,Q62) (Q877216,P190,Q61)
action is_in
entity prev_answer
action find
entity Q877216
relation P190
[ANSWER]
['Q877216', 'P190', 'Q90'] ['Q877216', 'P190', 'Q62'] ['Q877216', 'P190', 'Q61']
ASK WHERE { VALUES ( ?h ) { ( resource:Q90 ) ( resource:Q179313 ) ( resource:Q61 ) } . resource:Q877216 property:P190 ?h }
No
action is_in
entity prev_answer
action find
entity Shisō
relation sister city
['Shisō', 'sister city', 'Paris'] ['Shisō', 'sister city', 'San Francisco'] ['Shisō', 'sister city', 'Washington, D.C.']
ASK WHERE { VALUES ( ?h ) { ( resource:Paris ) ( resource:Alderney ) ( resource:Washington,_D.C. ) } . resource:Shisō property:sister_city ?h }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q90
P417
Q502895
USER
Which person is the patron saint of Paris ?
(Q90,P417,c(Q502895))
action filter_type
action find
entity Q90
relation P417
type Q502895
['Q90', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q502895 . resource:Q90 property:P417 ?k }
Paris
action filter_type
action find
entity Paris
relation patron saint
type common name
['Paris', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:common_name . resource:Paris property:patron_saint ?k }
[]
common name
Q235863
SYSTEM
Genevieve
Q235863
(Q90,P417,c(Q502895))
action filter_type
action find
entity Q90
relation P417
type Q502895
[ANSWER] is the patron saint of Paris
['Q90', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q502895 . resource:Q90 property:P417 ?k }
Genevieve
Genevieve is the patron saint of Paris
Genevieve
action filter_type
action find
entity Paris
relation patron saint
type common name
['Paris', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:common_name . resource:Paris property:patron_saint ?k }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q90
P30
Q2221906
USER
Which geographic location is that administrative territory situated in ?
(Q235863,P30,c(Q2221906))
action filter_type
action find
entity Q90
relation P30
type Q2221906
['Q235863', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?g WHERE { resource:Q90 property:P30 ?g . ?g rdf:type ontology:Q2221906 }
Paris
action filter_type
action find
entity Paris
relation continent
type geographic location
['Genevieve', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?g WHERE { resource:Paris property:continent ?g . ?g rdf:type ontology:geographic_location }
[]
geographic location
Q46
SYSTEM
Europe
Q46
(Q235863,P30,c(Q2221906))
action filter_type
action find
entity Q90
relation P30
type Q2221906
That administrative territory is situated in [ANSWER]
['Q235863', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?g WHERE { resource:Q90 property:P30 ?g . ?g rdf:type ontology:Q2221906 }
Europe
That administrative territory is situated in Europe
Europe
action filter_type
action find
entity Paris
relation continent
type geographic location
['Genevieve', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?g WHERE { resource:Paris property:continent ?g . ?g rdf:type ontology:geographic_location }
[]