Simple Question (Direct)
Simple Question
Q177078
P39
Q12737077
USER
Which occupation was a position occupied by John Kerr Hendrick ?
(Q177078,P39,c(Q12737077))
action filter_type
action find
entity Q177078
relation P39
type Q12737077
['Q177078', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q177078 property:P39 ?u . ?u rdf:type ontology:Q12737077 }
John Kerr Hendrick
action filter_type
action find
entity John Kerr Hendrick
relation position held
type occupation
['John Kerr Hendrick', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:John_Kerr_Hendrick property:position_held ?u . ?u rdf:type ontology:occupation }
[]
occupation
Q13218630
SYSTEM
United States representative
Q13218630
(Q177078,P39,c(Q12737077))
action filter_type
action find
entity Q177078
relation P39
type Q12737077
The [ANSWER] was a position occupied by John Kerr Hendrick
['Q177078', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q177078 property:P39 ?u . ?u rdf:type ontology:Q12737077 }
United States representative
The United States representative was a position occupied by John Kerr Hendrick
United States representative
action filter_type
action find
entity John Kerr Hendrick
relation position held
type occupation
['John Kerr Hendrick', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:John_Kerr_Hendrick property:position_held ?u . ?u rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P1001
Q15617994
USER
How many administrative territories apply to jurisdiction of that occupation ?
(Q13218630,P1001,c(Q15617994))
action count
action filter_type
action find
entity Q13218630
relation P1001
type Q15617994
['Q13218630', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { resource:Q13218630 property:P1001 ?h . ?h rdf:type ontology:Q15617994 }
action count
action filter_type
action find
entity United States representative
relation applies to jurisdiction
type designation for an administrative territorial entity
['United States representative', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { resource:United_States_representative property:applies_to_jurisdiction ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q30
(Q13218630,P1001,c(Q15617994))
action count
action filter_type
action find
entity Q13218630
relation P1001
type Q15617994
[ANSWER]
['Q13218630', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { resource:Q13218630 property:P1001 ?h . ?h rdf:type ontology:Q15617994 }
United States of America
1
action count
action filter_type
action find
entity United States representative
relation applies to jurisdiction
type designation for an administrative territorial entity
['United States representative', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { resource:United_States_representative property:applies_to_jurisdiction ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6323432 Q177078
P27
Q15617994
USER
Which administrative territories do John Kerr Hendrick or K. Jayatillake belong to ?
OR((Q177078,P27,c(Q15617994)), (Q6323432,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q177078
relation P27
action find
entity Q6323432
relation P27
type Q15617994
{'OR': [['Q177078', 'P27', {'concept': 'Q15617994'}], ['Q6323432', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q15617994 . { { resource:Q177078 property:P27 ?r } UNION { resource:Q6323432 property:P27 ?r } } }
K. Jayatillake John Kerr Hendrick
action filter_type
action union
action find
entity John Kerr Hendrick
relation country of citizenship
action find
entity K. Jayatillake
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['John Kerr Hendrick', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['K. Jayatillake', '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:John_Kerr_Hendrick property:country_of_citizenship ?r } UNION { resource:K._Jayatillake property:country_of_citizenship ?r } } }
[]
designation for an administrative territorial entity
Q30 Q854
SYSTEM
United States of America, Sri Lanka
Q30 Q854
OR((Q177078,P27,c(Q15617994)), (Q6323432,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q177078
relation P27
action find
entity Q6323432
relation P27
type Q15617994
John Kerr Hendrick or K Jayatillake belong to the [ANSWERS] .
{'OR': [['Q177078', 'P27', {'concept': 'Q15617994'}], ['Q6323432', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q15617994 . { { resource:Q177078 property:P27 ?r } UNION { resource:Q6323432 property:P27 ?r } } }
United States of America Sri Lanka
John Kerr Hendrick or K Jayatillake belong to the United States of America and Sri Lanka .
United States of America Sri Lanka
action filter_type
action union
action find
entity John Kerr Hendrick
relation country of citizenship
action find
entity K. Jayatillake
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['John Kerr Hendrick', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['K. Jayatillake', '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:John_Kerr_Hendrick property:country_of_citizenship ?r } UNION { resource:K._Jayatillake property:country_of_citizenship ?r } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q854
P1532
Q6979593
USER
Who represents that administrative territory ?
(c(Q6979593),P1532,Q854)
action filter_type
action find_reverse
entity Q854
relation P1532
type Q6979593
[{'concept': 'Q6979593'}, 'P1532', 'Q854']
SELECT DISTINCT ?f WHERE { ?f property:P1532 resource:Q854 . ?f rdf:type ontology:Q6979593 }
Sri Lanka
action filter_type
action find_reverse
entity Sri Lanka
relation country for sport
type national association football team
[{'concept': 'national association football team'}, 'country for sport', 'Sri Lanka']
SELECT DISTINCT ?f WHERE { ?f property:country_for_sport resource:Sri_Lanka . ?f rdf:type ontology:national_association_football_team }
[]
national association football team
Clarification for simple ques.
Q30
SYSTEM
Did you mean United States of America ?
Q30 Q854
(c(Q6979593),P1532,Q30) (c(Q6979593),P1532,Q854)
[ANSWER]
[{'concept': 'Q6979593'}, 'P1532', 'Q30'] [{'concept': 'Q6979593'}, 'P1532', 'Q854']
SELECT DISTINCT ?f WHERE { ?f property:P1532 resource:Q854 . ?f rdf:type ontology:Q6979593 }
United States of America Sri Lanka
Did you mean United States of America ?
United States of America
[{'concept': 'national association football team'}, 'country for sport', 'United States of America'] [{'concept': 'national association football team'}, 'country for sport', 'Sri Lanka']
SELECT DISTINCT ?f WHERE { ?f property:country_for_sport resource:Sri_Lanka . ?f rdf:type ontology:national_association_football_team }
[]
Simple Question (Coreferenced)
USER
No, I meant Sri Lanka. Could you tell me the answer for that?
(c(Q6979593),P1532,Q854)
Q854
[{'concept': 'Q6979593'}, 'P1532', 'Q854']
[{'concept': 'national association football team'}, 'country for sport', 'Sri Lanka']
[]
Q7586013
SYSTEM
Sri Lanka women's national football team
Q7586013
(c(Q6979593),P1532,Q854)
action filter_type
action find_reverse
entity Q854
relation P1532
type Q6979593
And [ANSWER] represents that administrative territory
[{'concept': 'Q6979593'}, 'P1532', 'Q854']
SELECT DISTINCT ?f WHERE { ?f property:P1532 resource:Q854 . ?f rdf:type ontology:Q6979593 }
Sri Lanka women's national football team
And Sri Lanka women's national football team represents that administrative territory
Sri Lanka women's national football team
action filter_type
action find_reverse
entity Sri Lanka
relation country for sport
type national association football team
[{'concept': 'national association football team'}, 'country for sport', 'Sri Lanka']
SELECT DISTINCT ?f WHERE { ?f property:country_for_sport resource:Sri_Lanka . ?f rdf:type ontology:national_association_football_team }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q26
P1532
Q56061 Q6979593
USER
How many administrative territories do less number of national association football teams play for than Northern Ireland ?
(c(Q6979593),P1532,c(Q56061))
action count
action less
action find_reverse_tuple_counts
relation P1532
type Q56061
type Q6979593
action count
action filter_type
action find_reverse
entity Q26
relation P1532
type Q6979593
[{'concept': 'Q6979593'}, 'P1532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?q ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?u ) AS ?n ) WHERE { ?u property:P1532 ?e . ?e rdf:type ontology:Q56061 . ?u rdf:type ontology:Q6979593 } GROUP BY ?e } . FILTER ( ?n < ?x ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:P1532 resource:Q26 . ?z rdf:type ontology:Q6979593 } } }
Northern Ireland
action count
action less
action find_reverse_tuple_counts
relation country for sport
type administrative territorial entity
type national association football team
action count
action filter_type
action find_reverse
entity Northern Ireland
relation country for sport
type national association football team
[{'concept': 'national association football team'}, 'country for sport', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?q ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?u ) AS ?n ) WHERE { ?u property:country_for_sport ?e . ?e rdf:type ontology:administrative_territorial_entity . ?u rdf:type ontology:national_association_football_team } GROUP BY ?e } . FILTER ( ?n < ?x ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:country_for_sport resource:Northern_Ireland . ?z rdf:type ontology:national_association_football_team } } }
[]
administrative territorial entity national association football team
SYSTEM
6
Q16644 Q1183 Q16641 Q11703 Q16635 Q25230
(c(Q6979593),P1532,c(Q56061))
action count
action less
action find_reverse_tuple_counts
relation P1532
type Q56061
type Q6979593
action count
action filter_type
action find_reverse
entity Q26
relation P1532
type Q6979593
[ANSWER]
[{'concept': 'Q6979593'}, 'P1532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?q ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?u ) AS ?n ) WHERE { ?u property:P1532 ?e . ?e rdf:type ontology:Q56061 . ?u rdf:type ontology:Q6979593 } GROUP BY ?e } . FILTER ( ?n < ?x ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:P1532 resource:Q26 . ?z rdf:type ontology:Q6979593 } } }
Northern Mariana Islands Puerto Rico American Samoa United States Virgin Islands Guam Guernsey
6
action count
action less
action find_reverse_tuple_counts
relation country for sport
type administrative territorial entity
type national association football team
action count
action filter_type
action find_reverse
entity Northern Ireland
relation country for sport
type national association football team
[{'concept': 'national association football team'}, 'country for sport', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?q ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?u ) AS ?n ) WHERE { ?u property:country_for_sport ?e . ?e rdf:type ontology:administrative_territorial_entity . ?u rdf:type ontology:national_association_football_team } GROUP BY ?e } . FILTER ( ?n < ?x ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:country_for_sport resource:Northern_Ireland . ?z rdf:type ontology:national_association_football_team } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q334
P1532
Q56061 Q6979593
USER
And how about Singapore?
(c(Q6979593),P1532,c(Q56061))
action count
action less
action find_reverse_tuple_counts
relation P1532
type Q56061
type Q6979593
action count
action filter_type
action find_reverse
entity Q334
relation P1532
type Q6979593
[{'concept': 'Q6979593'}, 'P1532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?j ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?u ) AS ?q ) WHERE { ?u rdf:type ontology:Q6979593 . ?z rdf:type ontology:Q56061 . ?u property:P1532 ?z } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?m ) WHERE { ?f property:P1532 resource:Q334 . ?f rdf:type ontology:Q6979593 } } . FILTER ( ?q < ?m ) }
Singapore
action count
action less
action find_reverse_tuple_counts
relation country for sport
type administrative territorial entity
type national association football team
action count
action filter_type
action find_reverse
entity Singapore
relation country for sport
type national association football team
[{'concept': 'national association football team'}, 'country for sport', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?j ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?u ) AS ?q ) WHERE { ?u rdf:type ontology:national_association_football_team . ?z rdf:type ontology:administrative_territorial_entity . ?u property:country_for_sport ?z } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?m ) WHERE { ?f property:country_for_sport resource:Singapore . ?f rdf:type ontology:national_association_football_team } } . FILTER ( ?q < ?m ) }
[]
administrative territorial entity national association football team
SYSTEM
6
Q16644 Q1183 Q16641 Q11703 Q16635 Q25230
(c(Q6979593),P1532,c(Q56061))
action count
action less
action find_reverse_tuple_counts
relation P1532
type Q56061
type Q6979593
action count
action filter_type
action find_reverse
entity Q334
relation P1532
type Q6979593
[ANSWER]
[{'concept': 'Q6979593'}, 'P1532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?j ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?u ) AS ?q ) WHERE { ?u rdf:type ontology:Q6979593 . ?z rdf:type ontology:Q56061 . ?u property:P1532 ?z } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?m ) WHERE { ?f property:P1532 resource:Q334 . ?f rdf:type ontology:Q6979593 } } . FILTER ( ?q < ?m ) }
Northern Mariana Islands Puerto Rico American Samoa United States Virgin Islands Guam Guernsey
6
action count
action less
action find_reverse_tuple_counts
relation country for sport
type administrative territorial entity
type national association football team
action count
action filter_type
action find_reverse
entity Singapore
relation country for sport
type national association football team
[{'concept': 'national association football team'}, 'country for sport', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?j ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?u ) AS ?q ) WHERE { ?u rdf:type ontology:national_association_football_team . ?z rdf:type ontology:administrative_territorial_entity . ?u property:country_for_sport ?z } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?m ) WHERE { ?f property:country_for_sport resource:Singapore . ?f rdf:type ontology:national_association_football_team } } . FILTER ( ?q < ?m ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1532
Q1048835 Q6979593
USER
How many political territories are played by atleast 2 national association football teams ?
(c(Q6979593),P1532,c(Q1048835))
action count
action atleast
action find_reverse_tuple_counts
relation P1532
type Q1048835
type Q6979593
value 2
[{'concept': 'Q6979593'}, 'P1532', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?o ) AS ?c ) WHERE { ?p rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q6979593 . ?o property:P1532 ?p } GROUP BY ?p } . FILTER ( ?c >= 2 ) }
action count
action atleast
action find_reverse_tuple_counts
relation country for sport
type political territorial entity
type national association football team
value 2
[{'concept': 'national association football team'}, 'country for sport', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?o ) AS ?c ) WHERE { ?p rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:national_association_football_team . ?o property:country_for_sport ?p } GROUP BY ?p } . FILTER ( ?c >= 2 ) }
[]
political territorial entity national association football team
SYSTEM
7
Q1000 Q183 Q664 Q16 Q35 Q408 Q25228
(c(Q6979593),P1532,c(Q1048835))
action count
action atleast
action find_reverse_tuple_counts
relation P1532
type Q1048835
type Q6979593
value 2
[ANSWER]
[{'concept': 'Q6979593'}, 'P1532', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?o ) AS ?c ) WHERE { ?p rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q6979593 . ?o property:P1532 ?p } GROUP BY ?p } . FILTER ( ?c >= 2 ) }
Gabon Germany New Zealand Canada Denmark Australia Anguilla
7
action count
action atleast
action find_reverse_tuple_counts
relation country for sport
type political territorial entity
type national association football team
value 2
[{'concept': 'national association football team'}, 'country for sport', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?o ) AS ?c ) WHERE { ?p rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:national_association_football_team . ?o property:country_for_sport ?p } GROUP BY ?p } . FILTER ( ?c >= 2 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q7976717 Q177078
P27 P17
Q15617994
USER
Which administrative territories are John Kerr Hendrick a civilian of and are Wayne Township a part of ?
AND((Q177078,P27,c(Q15617994)), (Q7976717,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q177078
relation P27
action find
entity Q7976717
relation P17
type Q15617994
{'AND': [['Q177078', 'P27', {'concept': 'Q15617994'}], ['Q7976717', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { resource:Q177078 property:P27 ?j . resource:Q7976717 property:P17 ?j . ?j rdf:type ontology:Q15617994 }
Wayne Township John Kerr Hendrick
action filter_type
action intersection
action find
entity John Kerr Hendrick
relation country of citizenship
action find
entity Wayne Township
relation country
type designation for an administrative territorial entity
{'AND': [['John Kerr Hendrick', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Wayne Township', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { resource:John_Kerr_Hendrick property:country_of_citizenship ?j . resource:Wayne_Township property:country ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
AND((Q177078,P27,c(Q15617994)), (Q7976717,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q177078
relation P27
action find
entity Q7976717
relation P17
type Q15617994
[ANSWER] is John Kerr Hendrick a civilian of and is Wayne Township a part of
{'AND': [['Q177078', 'P27', {'concept': 'Q15617994'}], ['Q7976717', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { resource:Q177078 property:P27 ?j . resource:Q7976717 property:P17 ?j . ?j rdf:type ontology:Q15617994 }
United States of America
United States of America is John Kerr Hendrick a civilian of and is Wayne Township a part of
United States of America
action filter_type
action intersection
action find
entity John Kerr Hendrick
relation country of citizenship
action find
entity Wayne Township
relation country
type designation for an administrative territorial entity
{'AND': [['John Kerr Hendrick', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Wayne Township', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { resource:John_Kerr_Hendrick property:country_of_citizenship ?j . resource:Wayne_Township property:country ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q30 Q6115270
P27
Q502895
USER
Is Jack Spector a native of that administrative territory ?
(Q6115270,P27,Q30)
action is_in
entity Q30
action find
entity Q6115270
relation P27
['Q6115270', 'P27', 'Q30']
ASK WHERE { resource:Q6115270 property:P27 resource:Q30 }
United States of America Jack Spector
action is_in
entity United States of America
action find
entity Jack Spector
relation country of citizenship
['Jack Spector', 'country of citizenship', 'United States of America']
ASK WHERE { resource:Jack_Spector property:country_of_citizenship resource:United_States_of_America }
[]
common name
SYSTEM
YES
(Q6115270,P27,Q30)
action is_in
entity Q30
action find
entity Q6115270
relation P27
[ANSWER]
['Q6115270', 'P27', 'Q30']
ASK WHERE { resource:Q6115270 property:P27 resource:Q30 }
Yes
action is_in
entity United States of America
action find
entity Jack Spector
relation country of citizenship
['Jack Spector', 'country of citizenship', 'United States of America']
ASK WHERE { resource:Jack_Spector property:country_of_citizenship resource:United_States_of_America }
[]