Simple Question (Direct)
Simple Question
Q461548
P641
Q349
USER
Which sport did Ryan Longwell participate in ?
(Q461548,P641,c(Q349))
action filter_type
action find
entity Q461548
relation P641
type Q349
['Q461548', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q349 . resource:Q461548 property:P641 ?r }
Ryan Longwell
action filter_type
action find
entity Ryan Longwell
relation sport
type sport
['Ryan Longwell', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:sport . resource:Ryan_Longwell property:sport ?r }
[]
sport
Q41323
SYSTEM
American football
Q41323
(Q461548,P641,c(Q349))
action filter_type
action find
entity Q461548
relation P641
type Q349
Ryan Longwell participated in [ANSWER]
['Q461548', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q349 . resource:Q461548 property:P641 ?r }
American football
Ryan Longwell participated in American football
American football
action filter_type
action find
entity Ryan Longwell
relation sport
type sport
['Ryan Longwell', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:sport . resource:Ryan_Longwell property:sport ?r }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q41323
P106
Q502895
USER
Which person has career as that sport ?
(c(Q502895),P106,Q41323)
action filter_type
action find_reverse
entity Q41323
relation P106
type Q502895
[{'concept': 'Q502895'}, 'P106', 'Q41323']
SELECT DISTINCT ?e WHERE { ?e property:P106 resource:Q41323 . ?e rdf:type ontology:Q502895 }
American football
action filter_type
action find_reverse
entity American football
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'American football']
SELECT DISTINCT ?e WHERE { ?e property:occupation resource:American_football . ?e rdf:type ontology:common_name }
[]
common name
Q22533685
SYSTEM
Robert Snyder
Q22533685
(c(Q502895),P106,Q41323)
action filter_type
action find_reverse
entity Q41323
relation P106
type Q502895
[ANSWER] has career as that sport
[{'concept': 'Q502895'}, 'P106', 'Q41323']
SELECT DISTINCT ?e WHERE { ?e property:P106 resource:Q41323 . ?e rdf:type ontology:Q502895 }
Robert Snyder
Robert Snyder has career as that sport
Robert Snyder
action filter_type
action find_reverse
entity American football
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'American football']
SELECT DISTINCT ?e WHERE { ?e property:occupation resource:American_football . ?e rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q41323
P361
Q1969448 Q451967
USER
How many terms or human actions are a component of American football ?
(c(Q1969448),P361,Q41323) (c(Q451967),P361,Q41323)
action count
action union
action filter_type
action find_reverse
entity Q41323
relation P361
type Q1969448
action filter_type
action find_reverse
entity Q41323
relation P361
type Q451967
[{'concept': 'Q1969448'}, 'P361', 'Q41323'] [{'concept': 'Q451967'}, 'P361', 'Q41323']
SELECT DISTINCT ( COUNT ( ?n ) AS ?u ) WHERE { { ?n property:P361 resource:Q41323 . ?n rdf:type ontology:Q1969448 } UNION { ?n property:P361 resource:Q41323 . ?n rdf:type ontology:Q451967 } }
American football
action count
action union
action filter_type
action find_reverse
entity American football
relation part of
type term
action filter_type
action find_reverse
entity American football
relation part of
type human action
[{'concept': 'term'}, 'part of', 'American football'] [{'concept': 'human action'}, 'part of', 'American football']
SELECT DISTINCT ( COUNT ( ?n ) AS ?u ) WHERE { { ?n property:part_of resource:American_football . ?n rdf:type ontology:term } UNION { ?n property:part_of resource:American_football . ?n rdf:type ontology:human_action } }
[]
term human action
SYSTEM
2
Q859147 Q1854464
(c(Q1969448),P361,Q41323) (c(Q451967),P361,Q41323)
action count
action union
action filter_type
action find_reverse
entity Q41323
relation P361
type Q1969448
action filter_type
action find_reverse
entity Q41323
relation P361
type Q451967
[ANSWER]
[{'concept': 'Q1969448'}, 'P361', 'Q41323'] [{'concept': 'Q451967'}, 'P361', 'Q41323']
SELECT DISTINCT ( COUNT ( ?n ) AS ?u ) WHERE { { ?n property:P361 resource:Q41323 . ?n rdf:type ontology:Q1969448 } UNION { ?n property:P361 resource:Q41323 . ?n rdf:type ontology:Q451967 } }
Big Play Quarterback sack
2
action count
action union
action filter_type
action find_reverse
entity American football
relation part of
type term
action filter_type
action find_reverse
entity American football
relation part of
type human action
[{'concept': 'term'}, 'part of', 'American football'] [{'concept': 'human action'}, 'part of', 'American football']
SELECT DISTINCT ( COUNT ( ?n ) AS ?u ) WHERE { { ?n property:part_of resource:American_football . ?n rdf:type ontology:term } UNION { ?n property:part_of resource:American_football . ?n rdf:type ontology:human_action } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3574012 Q22533685
P27
Q15617994
USER
Which administrative territories are the countries of citizenship of Robert Snyder or Yves d'Évreux ?
OR((Q22533685,P27,c(Q15617994)), (Q3574012,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q22533685
relation P27
action find
entity Q3574012
relation P27
type Q15617994
{'OR': [['Q22533685', 'P27', {'concept': 'Q15617994'}], ['Q3574012', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q3574012 property:P27 ?r } UNION { resource:Q22533685 property:P27 ?r } } . ?r rdf:type ontology:Q15617994 }
Yves d'Évreux Robert Snyder
action filter_type
action union
action find
entity Robert Snyder
relation country of citizenship
action find
entity Yves d'Évreux
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Robert Snyder', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ["Yves d'Évreux", 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Yves_d'Évreux property:country_of_citizenship ?r } UNION { resource:Robert_Snyder property:country_of_citizenship ?r } } . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q30
SYSTEM
France, United States of America
Q142 Q30
OR((Q22533685,P27,c(Q15617994)), (Q3574012,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q22533685
relation P27
action find
entity Q3574012
relation P27
type Q15617994
[ANSWERS] are the countries of citizenship of Robert Snyder or Yves d'Évreux
{'OR': [['Q22533685', 'P27', {'concept': 'Q15617994'}], ['Q3574012', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q3574012 property:P27 ?r } UNION { resource:Q22533685 property:P27 ?r } } . ?r rdf:type ontology:Q15617994 }
France United States of America
France and United States of America are the countries of citizenship of Robert Snyder or Yves d'Évreux
France United States of America
action filter_type
action union
action find
entity Robert Snyder
relation country of citizenship
action find
entity Yves d'Évreux
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Robert Snyder', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ["Yves d'Évreux", 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Yves_d'Évreux property:country_of_citizenship ?r } UNION { resource:Robert_Snyder property:country_of_citizenship ?r } } . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q5373484
P27
Q502895
USER
Are Emmet Gowin a native of those administrative territories ?
(Q5373484,P27,Q142) (Q5373484,P27,Q30)
action is_in
entity prev_answer
action find
entity Q5373484
relation P27
['Q5373484', 'P27', 'Q142'] ['Q5373484', 'P27', 'Q30']
ASK WHERE { VALUES ( ?m ) { ( resource:Q142 ) ( resource:Q30 ) } . resource:Q5373484 property:P27 ?m }
Emmet Gowin
action is_in
entity prev_answer
action find
entity Emmet Gowin
relation country of citizenship
['Emmet Gowin', 'country of citizenship', 'France'] ['Emmet Gowin', 'country of citizenship', 'United States of America']
ASK WHERE { VALUES ( ?m ) { ( resource:France ) ( resource:United_States_of_America ) } . resource:Emmet_Gowin property:country_of_citizenship ?m }
[]
common name
SYSTEM
NO
(Q5373484,P27,Q142) (Q5373484,P27,Q30)
action is_in
entity prev_answer
action find
entity Q5373484
relation P27
[ANSWER]
['Q5373484', 'P27', 'Q142'] ['Q5373484', 'P27', 'Q30']
ASK WHERE { VALUES ( ?m ) { ( resource:Q142 ) ( resource:Q30 ) } . resource:Q5373484 property:P27 ?m }
No
action is_in
entity prev_answer
action find
entity Emmet Gowin
relation country of citizenship
['Emmet Gowin', 'country of citizenship', 'France'] ['Emmet Gowin', 'country of citizenship', 'United States of America']
ASK WHERE { VALUES ( ?m ) { ( resource:France ) ( resource:United_States_of_America ) } . resource:Emmet_Gowin property:country_of_citizenship ?m }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q142 Q437393 Q18158
P47
Q15617994
USER
Does France have an adjacent border with Altenmarkt an der Triesting and Sala Biellese ?
(Q142,P47,Q437393) (Q142,P47,Q18158)
action is_in
entity Q142
action intersection
action find_reverse
entity Q437393
relation P47
action find_reverse
entity Q18158
relation P47
['Q142', 'P47', 'Q437393'] ['Q142', 'P47', 'Q18158']
ASK WHERE { resource:Q142 property:P47 resource:Q437393 . resource:Q142 property:P47 resource:Q18158 }
France Altenmarkt an der Triesting Sala Biellese
action is_in
entity France
action intersection
action find_reverse
entity Altenmarkt an der Triesting
relation shares border with
action find_reverse
entity Sala Biellese
relation shares border with
['France', 'shares border with', 'Altenmarkt an der Triesting'] ['France', 'shares border with', 'Sala Biellese']
ASK WHERE { resource:France property:shares_border_with resource:Altenmarkt_an_der_Triesting . resource:France property:shares_border_with resource:Sala_Biellese }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q142,P47,Q437393) (Q142,P47,Q18158)
action is_in
entity Q142
action intersection
action find_reverse
entity Q437393
relation P47
action find_reverse
entity Q18158
relation P47
[ANSWER]
['Q142', 'P47', 'Q437393'] ['Q142', 'P47', 'Q18158']
ASK WHERE { resource:Q142 property:P47 resource:Q437393 . resource:Q142 property:P47 resource:Q18158 }
No
action is_in
entity France
action intersection
action find_reverse
entity Altenmarkt an der Triesting
relation shares border with
action find_reverse
entity Sala Biellese
relation shares border with
['France', 'shares border with', 'Altenmarkt an der Triesting'] ['France', 'shares border with', 'Sala Biellese']
ASK WHERE { resource:France property:shares_border_with resource:Altenmarkt_an_der_Triesting . resource:France property:shares_border_with resource:Sala_Biellese }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
How many administrative territories have diplomatic associations with atmost 80 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action count
action atmost
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 80
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?v ) WHERE { FILTER ( ?i <= 80 ) . { SELECT DISTINCT ?k ( COUNT ( ?e ) AS ?i ) WHERE { ?k rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q15617994 . ?k property:P530 ?e } GROUP BY ?k } }
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 80
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?v ) WHERE { FILTER ( ?i <= 80 ) . { SELECT DISTINCT ?k ( COUNT ( ?e ) AS ?i ) WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k property:diplomatic_relation ?e } GROUP BY ?k } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
161
Q702 Q804 Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q265 Q37 Q712 Q711 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q929 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action atmost
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 80
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?v ) WHERE { FILTER ( ?i <= 80 ) . { SELECT DISTINCT ?k ( COUNT ( ?e ) AS ?i ) WHERE { ?k rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q15617994 . ?k property:P530 ?e } GROUP BY ?k } }
Federated States of Micronesia Panama Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Mongolia Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Central African Republic Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand Zambia
161
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 80
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?v ) WHERE { FILTER ( ?i <= 80 ) . { SELECT DISTINCT ?k ( COUNT ( ?e ) AS ?i ) WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k property:diplomatic_relation ?e } GROUP BY ?k } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have ambassadorial relations with around 54 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 54
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?g ) AS ?f ) WHERE { ?k property:P530 ?g . ?k rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q15617994 } GROUP BY ?k } . FILTER ( ?f = 54 ) }
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 54
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?g ) AS ?f ) WHERE { ?k property:diplomatic_relation ?g . ?k rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } . FILTER ( ?f = 54 ) }
[]
designation for an administrative territorial entity political territorial entity
Q16
SYSTEM
Canada
Q16
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 54
[ANSWER] have ambassadorial relations with around 54 administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?g ) AS ?f ) WHERE { ?k property:P530 ?g . ?k rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q15617994 } GROUP BY ?k } . FILTER ( ?f = 54 ) }
Canada
Canada have ambassadorial relations with around 54 administrative territories
Canada
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 54
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?g ) AS ?f ) WHERE { ?k property:diplomatic_relation ?g . ?k rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } . FILTER ( ?f = 54 ) }
[]