Simple Question (Direct)
Simple Question
Q8021412
P19
Q56061
USER
Which administrative territory is the birthplace of Willie Callaghan ?
(Q8021412,P19,c(Q56061))
action filter_type
action find
entity Q8021412
relation P19
type Q56061
['Q8021412', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q8021412 property:P19 ?k . ?k rdf:type ontology:Q56061 }
Willie Callaghan
action filter_type
action find
entity Willie Callaghan
relation place of birth
type administrative territorial entity
['Willie Callaghan', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Willie_Callaghan property:place_of_birth ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q211950
SYSTEM
Dunfermline
Q211950
(Q8021412,P19,c(Q56061))
action filter_type
action find
entity Q8021412
relation P19
type Q56061
In [ANSWER] is the birthplace of Willie Callaghan
['Q8021412', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q8021412 property:P19 ?k . ?k rdf:type ontology:Q56061 }
Dunfermline
In Dunfermline is the birthplace of Willie Callaghan
Dunfermline
action filter_type
action find
entity Willie Callaghan
relation place of birth
type administrative territorial entity
['Willie Callaghan', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Willie_Callaghan property:place_of_birth ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q8021412
P641
Q349
USER
Which sport did that person participate in ?
(Q211950,P641,c(Q349))
action filter_type
action find
entity Q8021412
relation P641
type Q349
['Q211950', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?b WHERE { resource:Q8021412 property:P641 ?b . ?b rdf:type ontology:Q349 }
Willie Callaghan
action filter_type
action find
entity Willie Callaghan
relation sport
type sport
['Dunfermline', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?b WHERE { resource:Willie_Callaghan property:sport ?b . ?b rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q211950,P641,c(Q349))
action filter_type
action find
entity Q8021412
relation P641
type Q349
That person participated in [ANSWER]
['Q211950', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?b WHERE { resource:Q8021412 property:P641 ?b . ?b rdf:type ontology:Q349 }
association football
That person participated in association football
association football
action filter_type
action find
entity Willie Callaghan
relation sport
type sport
['Dunfermline', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?b WHERE { resource:Willie_Callaghan property:sport ?b . ?b rdf:type ontology:sport }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q12597065 Q8021412
P27
Q15617994
USER
Which administrative territories are Willie Callaghan or Park Jung-bae a civilian of ?
OR((Q8021412,P27,c(Q15617994)), (Q12597065,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q8021412
relation P27
action find
entity Q12597065
relation P27
type Q15617994
{'OR': [['Q8021412', 'P27', {'concept': 'Q15617994'}], ['Q12597065', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q8021412 property:P27 ?g } UNION { resource:Q12597065 property:P27 ?g } } . ?g rdf:type ontology:Q15617994 }
Park Jung-bae Willie Callaghan
action filter_type
action union
action find
entity Willie Callaghan
relation country of citizenship
action find
entity Park Jung-bae
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Willie Callaghan', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Park Jung-bae', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Willie_Callaghan property:country_of_citizenship ?g } UNION { resource:Park_Jung-bae property:country_of_citizenship ?g } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q884 Q145
SYSTEM
South Korea, United Kingdom
Q884 Q145
OR((Q8021412,P27,c(Q15617994)), (Q12597065,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q8021412
relation P27
action find
entity Q12597065
relation P27
type Q15617994
[ANSWERS] are Willie Callaghan or Park Jung-bae a civilian of
{'OR': [['Q8021412', 'P27', {'concept': 'Q15617994'}], ['Q12597065', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q8021412 property:P27 ?g } UNION { resource:Q12597065 property:P27 ?g } } . ?g rdf:type ontology:Q15617994 }
South Korea United Kingdom
South Korea and United Kingdom are Willie Callaghan or Park Jung-bae a civilian of
South Korea United Kingdom
action filter_type
action union
action find
entity Willie Callaghan
relation country of citizenship
action find
entity Park Jung-bae
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Willie Callaghan', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Park Jung-bae', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Willie_Callaghan property:country_of_citizenship ?g } UNION { resource:Park_Jung-bae property:country_of_citizenship ?g } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q183
P530
Q1048835
USER
Do Germany have diplomatic relations with those administrative territories ?
(Q183,P530,Q884) (Q183,P530,Q145)
action is_in
entity prev_answer
action find
entity Q183
relation P530
['Q183', 'P530', 'Q884'] ['Q183', 'P530', 'Q145']
ASK WHERE { VALUES ( ?v ) { ( resource:Q884 ) ( resource:Q145 ) } . resource:Q183 property:P530 ?v }
Germany
action is_in
entity prev_answer
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'South Korea'] ['Germany', 'diplomatic relation', 'United Kingdom']
ASK WHERE { VALUES ( ?v ) { ( resource:South_Korea ) ( resource:United_Kingdom ) } . resource:Germany property:diplomatic_relation ?v }
[]
political territorial entity
SYSTEM
YES
(Q183,P530,Q884) (Q183,P530,Q145)
action is_in
entity prev_answer
action find
entity Q183
relation P530
[ANSWER]
['Q183', 'P530', 'Q884'] ['Q183', 'P530', 'Q145']
ASK WHERE { VALUES ( ?v ) { ( resource:Q884 ) ( resource:Q145 ) } . resource:Q183 property:P530 ?v }
Yes
action is_in
entity prev_answer
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'South Korea'] ['Germany', 'diplomatic relation', 'United Kingdom']
ASK WHERE { VALUES ( ?v ) { ( resource:South_Korea ) ( resource:United_Kingdom ) } . resource:Germany property:diplomatic_relation ?v }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q884 Q1197952 Q148
P530
Q15617994
USER
Does South Korea have ambassadorial relations with Yingjiang District and People's Republic of China ?
(Q884,P530,Q1197952) (Q884,P530,Q148)
action is_in
entity Q884
action intersection
action find_reverse
entity Q1197952
relation P530
action find_reverse
entity Q148
relation P530
['Q884', 'P530', 'Q1197952'] ['Q884', 'P530', 'Q148']
ASK WHERE { resource:Q884 property:P530 resource:Q1197952 . resource:Q884 property:P530 resource:Q148 }
South Korea Yingjiang District People's Republic of China
action is_in
entity South Korea
action intersection
action find_reverse
entity Yingjiang District
relation diplomatic relation
action find_reverse
entity People's Republic of China
relation diplomatic relation
['South Korea', 'diplomatic relation', 'Yingjiang District'] ['South Korea', 'diplomatic relation', "People's Republic of China"]
ASK WHERE { resource:South_Korea property:diplomatic_relation resource:Yingjiang_District . resource:South_Korea property:diplomatic_relation resource:People's_Republic_of_China }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q884,P530,Q1197952) (Q884,P530,Q148)
action is_in
entity Q884
action intersection
action find_reverse
entity Q1197952
relation P530
action find_reverse
entity Q148
relation P530
[ANSWER]
['Q884', 'P530', 'Q1197952'] ['Q884', 'P530', 'Q148']
ASK WHERE { resource:Q884 property:P530 resource:Q1197952 . resource:Q884 property:P530 resource:Q148 }
NO and YES respectively
action is_in
entity South Korea
action intersection
action find_reverse
entity Yingjiang District
relation diplomatic relation
action find_reverse
entity People's Republic of China
relation diplomatic relation
['South Korea', 'diplomatic relation', 'Yingjiang District'] ['South Korea', 'diplomatic relation', "People's Republic of China"]
ASK WHERE { resource:South_Korea property:diplomatic_relation resource:Yingjiang_District . resource:South_Korea property:diplomatic_relation resource:People's_Republic_of_China }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q211950 Q145
P17
Q15617994
USER
Is Dunfermline a part of United Kingdom ?
(Q211950,P17,Q145)
action is_in
entity Q145
action find
entity Q211950
relation P17
['Q211950', 'P17', 'Q145']
ASK WHERE { resource:Q211950 property:P17 resource:Q145 }
Dunfermline United Kingdom
action is_in
entity United Kingdom
action find
entity Dunfermline
relation country
['Dunfermline', 'country', 'United Kingdom']
ASK WHERE { resource:Dunfermline property:country resource:United_Kingdom }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q211950,P17,Q145)
action is_in
entity Q145
action find
entity Q211950
relation P17
[ANSWER]
['Q211950', 'P17', 'Q145']
ASK WHERE { resource:Q211950 property:P17 resource:Q145 }
Yes
action is_in
entity United Kingdom
action find
entity Dunfermline
relation country
['Dunfermline', 'country', 'United Kingdom']
ASK WHERE { resource:Dunfermline property:country resource:United_Kingdom }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q145 Q192
P6
Q502895
USER
Is David Cameron the head of government of United Kingdom ?
(Q145,P6,Q192)
action is_in
entity Q192
action find
entity Q145
relation P6
['Q145', 'P6', 'Q192']
ASK WHERE { resource:Q145 property:P6 resource:Q192 }
United Kingdom David Cameron
action is_in
entity David Cameron
action find
entity United Kingdom
relation head of government
['United Kingdom', 'head of government', 'David Cameron']
ASK WHERE { resource:United_Kingdom property:head_of_government resource:David_Cameron }
[]
common name
SYSTEM
YES
(Q145,P6,Q192)
action is_in
entity Q192
action find
entity Q145
relation P6
[ANSWER]
['Q145', 'P6', 'Q192']
ASK WHERE { resource:Q145 property:P6 resource:Q192 }
Yes
action is_in
entity David Cameron
action find
entity United Kingdom
relation head of government
['United Kingdom', 'head of government', 'David Cameron']
ASK WHERE { resource:United_Kingdom property:head_of_government resource:David_Cameron }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q191
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relations with less number of administrative territories than Estonia ?
(c(Q15617994),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q191
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?b ) AS ?a ) WHERE { ?d property:P530 ?b . ?d rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q15617994 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?e ) WHERE { resource:Q191 property:P530 ?r . ?r rdf:type ontology:Q15617994 } } . FILTER ( ?a < ?e ) }
Estonia
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Estonia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?b ) AS ?a ) WHERE { ?d property:diplomatic_relation ?b . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?e ) WHERE { resource:Estonia property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?a < ?e ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q29999 Q786 Q924
SYSTEM
Kingdom of the Netherlands, Dominican Republic, Tanzania
Q702 Q804 Q262 Q265 Q712 Q837 Q657 Q792 Q986 Q242 Q811 Q924 Q29999 Q854 Q819 Q424 Q730 Q232 Q921 Q1027 Q1020 Q1028 Q786 Q1036 Q1037 Q974 Q1032 Q1030 Q965 Q967 Q963 Q697 Q695 Q115 Q117 Q754 Q912 Q1007 Q1006 Q1005 Q1009 Q1008 Q971 Q683 Q686 Q836 Q774 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q191
relation P530
type Q15617994
[ANSWERS] have diplomatic relations with less number of administrative territories than Estonia
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?b ) AS ?a ) WHERE { ?d property:P530 ?b . ?d rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q15617994 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?e ) WHERE { resource:Q191 property:P530 ?r . ?r rdf:type ontology:Q15617994 } } . FILTER ( ?a < ?e ) }
Federated States of Micronesia Panama Algeria Uzbekistan Fiji Nepal Chad El Salvador Eritrea Belize Nicaragua Tanzania Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Kazakhstan Brunei Mauritius Malawi Morocco Dominican Republic Uganda Rwanda Democratic Republic of the Congo Niger Namibia Burkina Faso Burundi Botswana Nauru Palau Ethiopia Ghana Trinidad and Tobago Mali Guinea-Bissau Guinea Gambia Cameroon Côte d'Ivoire Republic of the Congo Samoa Vanuatu Myanmar Guatemala Kuwait Madagascar Togo Tonga New Caledonia
Kingdom of the Netherlands, Dominican Republic and Tanzania have diplomatic relations with less number of administrative territories than Estonia
Kingdom of the Netherlands Dominican Republic Tanzania
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Estonia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?b ) AS ?a ) WHERE { ?d property:diplomatic_relation ?b . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?e ) WHERE { resource:Estonia property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?a < ?e ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q79
P530
Q15617994 Q15617994
USER
And how about Egypt?
(c(Q15617994),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q79
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?o ) AS ?f ) WHERE { ?x property:P530 ?o . ?o rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15617994 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?y ) WHERE { ?j rdf:type ontology:Q15617994 . resource:Q79 property:P530 ?j } } . FILTER ( ?f < ?y ) }
Egypt
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Egypt
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?o ) AS ?f ) WHERE { ?x property:diplomatic_relation ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?y ) WHERE { ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Egypt property:diplomatic_relation ?j } } . FILTER ( ?f < ?y ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q55 Q36 Q32
SYSTEM
Netherlands, Poland, Luxembourg
Q702 Q804 Q800 Q419 Q55 Q262 Q783 Q265 Q37 Q712 Q717 Q837 Q399 Q398 Q657 Q258 Q45 Q41 Q792 Q790 Q954 Q889 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q1029 Q1028 Q786 Q228 Q227 Q224 Q221 Q96 Q229 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q117 Q754 Q750 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q77 Q878 Q774 Q817 Q810 Q1019 Q1016 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q79
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?o ) AS ?f ) WHERE { ?x property:P530 ?o . ?o rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15617994 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?y ) WHERE { ?j rdf:type ontology:Q15617994 . resource:Q79 property:P530 ?j } } . FILTER ( ?f < ?y ) }
Federated States of Micronesia Panama Costa Rica Peru Netherlands Algeria Honduras Uzbekistan Lithuania Fiji Venezuela Nepal Armenia Bahrain Chad South Africa Portugal Greece El Salvador Haiti Zimbabwe Afghanistan South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Mozambique Morocco Dominican Republic Andorra Azerbaijan Croatia Republic of Macedonia Mexico Cyprus Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Ghana Trinidad and Tobago Bolivia 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 Uruguay United Arab Emirates Guatemala Kuwait Jordan Madagascar Libya Togo Tonga Spain New Caledonia Thailand
Netherlands Poland Luxembourg
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Egypt
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?o ) AS ?f ) WHERE { ?x property:diplomatic_relation ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?y ) WHERE { ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Egypt property:diplomatic_relation ?j } } . FILTER ( ?f < ?y ) }
[]