Simple Question (Direct)
Simple Question
Q1066222
P39
Q12737077
USER
What was the position held by Charles Tatgenhorst, Jr. ?
(Q1066222,P39,c(Q12737077))
action filter_type
action find
entity Q1066222
relation P39
type Q12737077
['Q1066222', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q12737077 . resource:Q1066222 property:P39 ?n }
Charles Tatgenhorst, Jr.
action filter_type
action find
entity Charles Tatgenhorst, Jr.
relation position held
type occupation
['Charles Tatgenhorst, Jr.', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:occupation . resource:Charles_Tatgenhorst,_Jr. property:position_held ?n }
[]
occupation
Q13218630
SYSTEM
United States representative
Q13218630
(Q1066222,P39,c(Q12737077))
action filter_type
action find
entity Q1066222
relation P39
type Q12737077
The position held by Charles Tatgenhorst , Jr. was a [ANSWER]
['Q1066222', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q12737077 . resource:Q1066222 property:P39 ?n }
United States representative
The position held by Charles Tatgenhorst , Jr. was a United States representative
United States representative
action filter_type
action find
entity Charles Tatgenhorst, Jr.
relation position held
type occupation
['Charles Tatgenhorst, Jr.', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:occupation . resource:Charles_Tatgenhorst,_Jr. property:position_held ?n }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1066222
P27
Q15617994
USER
Which administrative territory is Charles Tatgenhorst, Jr. a civilian of ?
(Q1066222,P27,c(Q15617994))
action filter_type
action find
entity Q1066222
relation P27
type Q15617994
['Q1066222', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q1066222 property:P27 ?t . ?t rdf:type ontology:Q15617994 }
Charles Tatgenhorst, Jr.
action filter_type
action find
entity Charles Tatgenhorst, Jr.
relation country of citizenship
type designation for an administrative territorial entity
['Charles Tatgenhorst, Jr.', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Charles_Tatgenhorst,_Jr. property:country_of_citizenship ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q1066222,P27,c(Q15617994))
action filter_type
action find
entity Q1066222
relation P27
type Q15617994
[ANSWER] is Charles Tatgenhorst, Jr. a civilian of
['Q1066222', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q1066222 property:P27 ?t . ?t rdf:type ontology:Q15617994 }
United States of America
United States of America is Charles Tatgenhorst, Jr. a civilian of
United States of America
action filter_type
action find
entity Charles Tatgenhorst, Jr.
relation country of citizenship
type designation for an administrative territorial entity
['Charles Tatgenhorst, Jr.', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Charles_Tatgenhorst,_Jr. property:country_of_citizenship ?t . ?t 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 representative 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 ?l WHERE { resource:Q30 property:P194 ?l . ?l rdf:type ontology:Q11204 }
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 ?l WHERE { resource:United_States_of_America property:legislative_body ?l . ?l rdf:type ontology:legislature }
[]
legislature
Q11268
SYSTEM
United States Congress
Q11268
(Q30,P194,c(Q11204))
action filter_type
action find
entity Q30
relation P194
type Q11204
[ANSWER] is the representative body for that administrative territory
['Q30', 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ?l WHERE { resource:Q30 property:P194 ?l . ?l rdf:type ontology:Q11204 }
United States Congress
United States Congress is the representative 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 ?l WHERE { resource:United_States_of_America property:legislative_body ?l . ?l rdf:type ontology:legislature }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P361
Q11204 Q502895 Q56061
USER
How many legislatures are greater number of people or administrative territories a part of than that legislature ?
(c(Q502895)|c(Q56061),P361,c(Q11204))
action count
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q11204
type Q502895
action find_reverse_tuple_counts
relation P361
type Q11204
type Q56061
action count
action filter_multi_types
action find_reverse
entity Q11268
relation P361
type Q502895
type Q56061
[[{'concept': 'Q502895'}, {'concept': 'Q56061'}], 'P361', {'concept': 'Q11204'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?z ) WHERE { FILTER ( ?l > ?a ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { ?x property:P361 resource:Q11268 . { { ?x rdf:type ontology:Q502895 } UNION { ?x rdf:type ontology:Q56061 } } } } . { SELECT DISTINCT ?v ( COUNT ( ?c ) AS ?l ) WHERE { { ?c property:P361 ?v . ?v rdf:type ontology:Q11204 . ?c rdf:type ontology:Q502895 } UNION { ?c rdf:type ontology:Q56061 . ?v rdf:type ontology:Q11204 . ?c property:P361 ?v } } GROUP BY ?v } }
action count
action greater
action union
action find_reverse_tuple_counts
relation part of
type legislature
type common name
action find_reverse_tuple_counts
relation part of
type legislature
type administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity United States Congress
relation part of
type common name
type administrative territorial entity
[[{'concept': 'common name'}, {'concept': 'administrative territorial entity'}], 'part of', {'concept': 'legislature'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?z ) WHERE { FILTER ( ?l > ?a ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { ?x property:part_of resource:United_States_Congress . { { ?x rdf:type ontology:common_name } UNION { ?x rdf:type ontology:administrative_territorial_entity } } } } . { SELECT DISTINCT ?v ( COUNT ( ?c ) AS ?l ) WHERE { { ?c property:part_of ?v . ?v rdf:type ontology:legislature . ?c rdf:type ontology:common_name } UNION { ?c rdf:type ontology:administrative_territorial_entity . ?v rdf:type ontology:legislature . ?c property:part_of ?v } } GROUP BY ?v } }
[]
legislature common name administrative territorial entity
SYSTEM
2
Q739384 Q7566117
(c(Q502895)|c(Q56061),P361,c(Q11204))
action count
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q11204
type Q502895
action find_reverse_tuple_counts
relation P361
type Q11204
type Q56061
action count
action filter_multi_types
action find_reverse
entity Q11268
relation P361
type Q502895
type Q56061
[ANSWER]
[[{'concept': 'Q502895'}, {'concept': 'Q56061'}], 'P361', {'concept': 'Q11204'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?z ) WHERE { FILTER ( ?l > ?a ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { ?x property:P361 resource:Q11268 . { { ?x rdf:type ontology:Q502895 } UNION { ?x rdf:type ontology:Q56061 } } } } . { SELECT DISTINCT ?v ( COUNT ( ?c ) AS ?l ) WHERE { { ?c property:P361 ?v . ?v rdf:type ontology:Q11204 . ?c rdf:type ontology:Q502895 } UNION { ?c rdf:type ontology:Q56061 . ?v rdf:type ontology:Q11204 . ?c property:P361 ?v } } GROUP BY ?v } }
London County Council South Australian House of Assembly
2
action count
action greater
action union
action find_reverse_tuple_counts
relation part of
type legislature
type common name
action find_reverse_tuple_counts
relation part of
type legislature
type administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity United States Congress
relation part of
type common name
type administrative territorial entity
[[{'concept': 'common name'}, {'concept': 'administrative territorial entity'}], 'part of', {'concept': 'legislature'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?z ) WHERE { FILTER ( ?l > ?a ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { ?x property:part_of resource:United_States_Congress . { { ?x rdf:type ontology:common_name } UNION { ?x rdf:type ontology:administrative_territorial_entity } } } } . { SELECT DISTINCT ?v ( COUNT ( ?c ) AS ?l ) WHERE { { ?c property:part_of ?v . ?v rdf:type ontology:legislature . ?c rdf:type ontology:common_name } UNION { ?c rdf:type ontology:administrative_territorial_entity . ?v rdf:type ontology:legislature . ?c property:part_of ?v } } GROUP BY ?v } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q659059 Q1066222
P20
Q515
USER
Which cities are the places of death of Charles Tatgenhorst, Jr. or Fernando Cornejo ?
OR((Q1066222,P20,c(Q515)), (Q659059,P20,c(Q515)))
action filter_type
action union
action find
entity Q1066222
relation P20
action find
entity Q659059
relation P20
type Q515
{'OR': [['Q1066222', 'P20', {'concept': 'Q515'}], ['Q659059', 'P20', {'concept': 'Q515'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q659059 property:P20 ?b } UNION { resource:Q1066222 property:P20 ?b } } . ?b rdf:type ontology:Q515 }
Fernando Cornejo Charles Tatgenhorst, Jr.
action filter_type
action union
action find
entity Charles Tatgenhorst, Jr.
relation place of death
action find
entity Fernando Cornejo
relation place of death
type city
{'OR': [['Charles Tatgenhorst, Jr.', 'place of death', {'concept': 'city'}], ['Fernando Cornejo', 'place of death', {'concept': 'city'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Fernando_Cornejo property:place_of_death ?b } UNION { resource:Charles_Tatgenhorst,_Jr. property:place_of_death ?b } } . ?b rdf:type ontology:city }
[]
city
Q43196 Q2887
SYSTEM
Cincinnati, Santiago
Q43196 Q2887
OR((Q1066222,P20,c(Q515)), (Q659059,P20,c(Q515)))
action filter_type
action union
action find
entity Q1066222
relation P20
action find
entity Q659059
relation P20
type Q515
[ANSWERS] are the places of death of Charles Tatgenhorst, Jr. or Fernando Cornejo
{'OR': [['Q1066222', 'P20', {'concept': 'Q515'}], ['Q659059', 'P20', {'concept': 'Q515'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q659059 property:P20 ?b } UNION { resource:Q1066222 property:P20 ?b } } . ?b rdf:type ontology:Q515 }
Cincinnati Santiago
Cincinnati and Santiago are the places of death of Charles Tatgenhorst, Jr. or Fernando Cornejo
Cincinnati Santiago
action filter_type
action union
action find
entity Charles Tatgenhorst, Jr.
relation place of death
action find
entity Fernando Cornejo
relation place of death
type city
{'OR': [['Charles Tatgenhorst, Jr.', 'place of death', {'concept': 'city'}], ['Fernando Cornejo', 'place of death', {'concept': 'city'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Fernando_Cornejo property:place_of_death ?b } UNION { resource:Charles_Tatgenhorst,_Jr. property:place_of_death ?b } } . ?b rdf:type ontology:city }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1001
Q15617994 Q14660 Q11204
USER
How many administrative territories apply to jurisdiction of approximately 2 flags and legislatures ?
(c(Q14660)|c(Q11204),P1001,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q14660
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q11204
value 2
[[{'concept': 'Q14660'}, {'concept': 'Q11204'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?u ) AS ?p ) WHERE { VALUES ( ?m ) { ( ontology:Q11204 ) ( ontology:Q14660 ) } . ?u rdf:type ?m } GROUP BY ?w } . FILTER ( ?p = 2 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type flag
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type legislature
value 2
[[{'concept': 'flag'}, {'concept': 'legislature'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?u ) AS ?p ) WHERE { VALUES ( ?m ) { ( ontology:legislature ) ( ontology:flag ) } . ?u rdf:type ?m } GROUP BY ?w } . FILTER ( ?p = 2 ) }
[]
designation for an administrative territorial entity flag legislature
SYSTEM
16
Q148 Q189 Q37 Q710 Q159 Q792 Q884 Q1952 Q30 Q786 Q347 Q902 Q191 Q962 Q29 Q774
(c(Q14660)|c(Q11204),P1001,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q14660
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q11204
value 2
[ANSWER]
[[{'concept': 'Q14660'}, {'concept': 'Q11204'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?u ) AS ?p ) WHERE { VALUES ( ?m ) { ( ontology:Q11204 ) ( ontology:Q14660 ) } . ?u rdf:type ?m } GROUP BY ?w } . FILTER ( ?p = 2 ) }
People's Republic of China Iceland Lithuania Kiribati Russia El Salvador South Korea Nova Scotia United States of America Dominican Republic Liechtenstein Bangladesh Estonia Benin Spain Guatemala
16
action count
action approx
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type flag
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type legislature
value 2
[[{'concept': 'flag'}, {'concept': 'legislature'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?u ) AS ?p ) WHERE { VALUES ( ?m ) { ( ontology:legislature ) ( ontology:flag ) } . ?u rdf:type ?m } GROUP BY ?w } . FILTER ( ?p = 2 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q43196
P138
Q874405
USER
Which social group is the origin of Cincinnati ?
(Q43196,P138,c(Q874405))
action filter_type
action find
entity Q43196
relation P138
type Q874405
['Q43196', 'P138', {'concept': 'Q874405'}]
SELECT DISTINCT ?l WHERE { resource:Q43196 property:P138 ?l . ?l rdf:type ontology:Q874405 }
Cincinnati
action filter_type
action find
entity Cincinnati
relation named after
type social group
['Cincinnati', 'named after', {'concept': 'social group'}]
SELECT DISTINCT ?l WHERE { resource:Cincinnati property:named_after ?l . ?l rdf:type ontology:social_group }
[]
social group
Q1632484
SYSTEM
Society of the Cincinnati
Q1632484
(Q43196,P138,c(Q874405))
action filter_type
action find
entity Q43196
relation P138
type Q874405
Was [ANSWER] is the origin of Cincinnati
['Q43196', 'P138', {'concept': 'Q874405'}]
SELECT DISTINCT ?l WHERE { resource:Q43196 property:P138 ?l . ?l rdf:type ontology:Q874405 }
Society of the Cincinnati
Was Society of the Cincinnati is the origin of Cincinnati
Society of the Cincinnati
action filter_type
action find
entity Cincinnati
relation named after
type social group
['Cincinnati', 'named after', {'concept': 'social group'}]
SELECT DISTINCT ?l WHERE { resource:Cincinnati property:named_after ?l . ?l rdf:type ontology:social_group }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q14944179
Q874405
USER
And also tell me about Peaky Blinders?
(Q14944179,P138,c(Q874405))
action filter_type
action find
entity Q14944179
relation P138
type Q874405
['Q14944179', 'P138', {'concept': 'Q874405'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q874405 . resource:Q14944179 property:P138 ?w }
Peaky Blinders
action filter_type
action find
entity Peaky Blinders
relation named after
type social group
['Peaky Blinders', 'named after', {'concept': 'social group'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:social_group . resource:Peaky_Blinders property:named_after ?w }
[]
social group
Q15091547
SYSTEM
Peaky Blinders
Q15091547
(Q14944179,P138,c(Q874405))
action filter_type
action find
entity Q14944179
relation P138
type Q874405
[ANSWER]
['Q14944179', 'P138', {'concept': 'Q874405'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q874405 . resource:Q14944179 property:P138 ?w }
Peaky Blinders
Peaky Blinders
action filter_type
action find
entity Peaky Blinders
relation named after
type social group
['Peaky Blinders', 'named after', {'concept': 'social group'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:social_group . resource:Peaky_Blinders property:named_after ?w }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q15091547 Q145 Q7166160
P17
Q15617994
USER
Is Peaky Blinders situated in United Kingdom and Peoria Unified School District ?
(Q15091547,P17,Q145) (Q15091547,P17,Q7166160)
action is_in
entity Q15091547
action intersection
action find_reverse
entity Q145
relation P17
action find_reverse
entity Q7166160
relation P17
['Q15091547', 'P17', 'Q145'] ['Q15091547', 'P17', 'Q7166160']
ASK WHERE { resource:Q15091547 property:P17 resource:Q7166160 . resource:Q15091547 property:P17 resource:Q145 }
Peaky Blinders United Kingdom Peoria Unified School District
action is_in
entity Peaky Blinders
action intersection
action find_reverse
entity United Kingdom
relation country
action find_reverse
entity Peoria Unified School District
relation country
['Peaky Blinders', 'country', 'United Kingdom'] ['Peaky Blinders', 'country', 'Peoria Unified School District']
ASK WHERE { resource:Peaky_Blinders property:country resource:Peoria_Unified_School_District . resource:Peaky_Blinders property:country resource:United_Kingdom }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q15091547,P17,Q145) (Q15091547,P17,Q7166160)
action is_in
entity Q15091547
action intersection
action find_reverse
entity Q145
relation P17
action find_reverse
entity Q7166160
relation P17
[ANSWER]
['Q15091547', 'P17', 'Q145'] ['Q15091547', 'P17', 'Q7166160']
ASK WHERE { resource:Q15091547 property:P17 resource:Q7166160 . resource:Q15091547 property:P17 resource:Q145 }
YES and NO respectively
action is_in
entity Peaky Blinders
action intersection
action find_reverse
entity United Kingdom
relation country
action find_reverse
entity Peoria Unified School District
relation country
['Peaky Blinders', 'country', 'United Kingdom'] ['Peaky Blinders', 'country', 'Peoria Unified School District']
ASK WHERE { resource:Peaky_Blinders property:country resource:Peoria_Unified_School_District . resource:Peaky_Blinders property:country resource:United_Kingdom }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15091547
P921
Q15416
USER
Which television program has that social group as its main topic ?
action filter_type
action find_reverse
entity Q15091547
relation P921
type Q15416
SELECT DISTINCT ?x WHERE { ?x property:P921 resource:Q15091547 . ?x rdf:type ontology:Q15416 }
Peaky Blinders
action filter_type
action find_reverse
entity Peaky Blinders
relation main subject
type television program
SELECT DISTINCT ?x WHERE { ?x property:main_subject resource:Peaky_Blinders . ?x rdf:type ontology:television_program }
[]
television program
Q14944179
SYSTEM
Peaky Blinders
Q14944179
action filter_type
action find_reverse
entity Q15091547
relation P921
type Q15416
[ANSWER] has that social group as its main topic
SELECT DISTINCT ?x WHERE { ?x property:P921 resource:Q15091547 . ?x rdf:type ontology:Q15416 }
Peaky Blinders
Peaky Blinders has that social group as its main topic
Peaky Blinders
action filter_type
action find_reverse
entity Peaky Blinders
relation main subject
type television program
SELECT DISTINCT ?x WHERE { ?x property:main_subject resource:Peaky_Blinders . ?x rdf:type ontology:television_program }
[]