Simple Question (Direct)
Simple Question
Q16013134
P39
Q12737077
USER
What was the position held by Paul Yahner ?
(Q16013134,P39,c(Q12737077))
action filter_type
action find
entity Q16013134
relation P39
type Q12737077
['Q16013134', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q16013134 property:P39 ?t . ?t rdf:type ontology:Q12737077 }
Paul Yahner
action filter_type
action find
entity Paul Yahner
relation position held
type occupation
['Paul Yahner', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Paul_Yahner property:position_held ?t . ?t rdf:type ontology:occupation }
[]
occupation
Q14616716
SYSTEM
member of the Pennsylvania House of Representatives
Q14616716
(Q16013134,P39,c(Q12737077))
action filter_type
action find
entity Q16013134
relation P39
type Q12737077
The position held by Paul Yahner was a [ANSWER]
['Q16013134', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q16013134 property:P39 ?t . ?t rdf:type ontology:Q12737077 }
member of the Pennsylvania House of Representatives
The position held by Paul Yahner was a member of the Pennsylvania House of Representatives
member of the Pennsylvania House of Representatives
action filter_type
action find
entity Paul Yahner
relation position held
type occupation
['Paul Yahner', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Paul_Yahner property:position_held ?t . ?t rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16013134
P937
Q852446
USER
Which is the work location of that person ?
(Q14616716,P937,c(Q852446))
action filter_type
action find
entity Q16013134
relation P937
type Q852446
['Q14616716', 'P937', {'concept': 'Q852446'}]
SELECT DISTINCT ?g WHERE { resource:Q16013134 property:P937 ?g . ?g rdf:type ontology:Q852446 }
Paul Yahner
action filter_type
action find
entity Paul Yahner
relation work location
type administrative territorial entity of the United States
['member of the Pennsylvania House of Representatives', 'work location', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?g WHERE { resource:Paul_Yahner property:work_location ?g . ?g rdf:type ontology:administrative_territorial_entity_of_the_United_States }
[]
administrative territorial entity of the United States
Q25280
SYSTEM
Harrisburg
Q25280
(Q14616716,P937,c(Q852446))
action filter_type
action find
entity Q16013134
relation P937
type Q852446
The work location of that person is in [ANSWER]
['Q14616716', 'P937', {'concept': 'Q852446'}]
SELECT DISTINCT ?g WHERE { resource:Q16013134 property:P937 ?g . ?g rdf:type ontology:Q852446 }
Harrisburg
The work location of that person is in Harrisburg
Harrisburg
action filter_type
action find
entity Paul Yahner
relation work location
type administrative territorial entity of the United States
['member of the Pennsylvania House of Representatives', 'work location', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?g WHERE { resource:Paul_Yahner property:work_location ?g . ?g rdf:type ontology:administrative_territorial_entity_of_the_United_States }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16013134
P1412
Q34770
USER
Which language does that person speak in ?
(Q25280,P1412,c(Q34770))
action filter_type
action find
entity Q16013134
relation P1412
type Q34770
['Q25280', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?f WHERE { resource:Q16013134 property:P1412 ?f . ?f rdf:type ontology:Q34770 }
Paul Yahner
action filter_type
action find
entity Paul Yahner
relation languages spoken, written or signed
type language
['Harrisburg', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?f WHERE { resource:Paul_Yahner property:languages_spoken,_written_or_signed ?f . ?f rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q25280,P1412,c(Q34770))
action filter_type
action find
entity Q16013134
relation P1412
type Q34770
That person speaks the [ANSWER]
['Q25280', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?f WHERE { resource:Q16013134 property:P1412 ?f . ?f rdf:type ontology:Q34770 }
English
That person speaks the English
English
action filter_type
action find
entity Paul Yahner
relation languages spoken, written or signed
type language
['Harrisburg', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?f WHERE { resource:Paul_Yahner property:languages_spoken,_written_or_signed ?f . ?f rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q25280
P17
Q15617994
USER
Which administrative territory is Harrisburg present in ?
(Q25280,P17,c(Q15617994))
action filter_type
action find
entity Q25280
relation P17
type Q15617994
['Q25280', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q25280 property:P17 ?h . ?h rdf:type ontology:Q15617994 }
Harrisburg
action filter_type
action find
entity Harrisburg
relation country
type designation for an administrative territorial entity
['Harrisburg', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Harrisburg property:country ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q25280,P17,c(Q15617994))
action filter_type
action find
entity Q25280
relation P17
type Q15617994
Harrisburg is the [ANSWER]
['Q25280', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q25280 property:P17 ?h . ?h rdf:type ontology:Q15617994 }
United States of America
Harrisburg is the United States of America
United States of America
action filter_type
action find
entity Harrisburg
relation country
type designation for an administrative territorial entity
['Harrisburg', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Harrisburg property:country ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q225
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic associations with approximately the same number of administrative territories as Bosnia and Herzegovina ?
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q225
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?x ) AS ?u ) WHERE { ?g property:P530 ?x . ?g rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15617994 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { resource:Q225 property:P530 ?f . ?f rdf:type ontology:Q15617994 } } . FILTER ( ?u = ?w ) }
Bosnia and Herzegovina
action approx
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 Bosnia and Herzegovina
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 ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?x ) AS ?u ) WHERE { ?g property:diplomatic_relation ?x . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { resource:Bosnia_and_Herzegovina property:diplomatic_relation ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?u = ?w ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q30 Q55 Q142
SYSTEM
United States of America, Netherlands, France
Q702 Q804 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q265 Q37 Q712 Q711 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q43 Q41 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 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 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
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q225
relation P530
type Q15617994
[ANSWERS] have diplomatic associations with approximately the same number of administrative territories as Bosnia and Herzegovina
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?x ) AS ?u ) WHERE { ?g property:P530 ?x . ?g rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15617994 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { resource:Q225 property:P530 ?f . ?f rdf:type ontology:Q15617994 } } . FILTER ( ?u = ?w ) }
Federated States of Micronesia Panama 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 Turkey Greece 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 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 Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman 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
United States of America, Netherlands and France have diplomatic associations with approximately the same number of administrative territories as Bosnia and Herzegovina
United States of America Netherlands France
action approx
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 Bosnia and Herzegovina
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 ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?x ) AS ?u ) WHERE { ?g property:diplomatic_relation ?x . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { resource:Bosnia_and_Herzegovina property:diplomatic_relation ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?u = ?w ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q43
P530
Q15617994 Q15617994
USER
And how about Turkey?
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q43
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?w ) AS ?i ) WHERE { ?w rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q15617994 . ?p property:P530 ?w } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { ?u rdf:type ontology:Q15617994 . resource:Q43 property:P530 ?u } } . FILTER ( ?i = ?a ) }
Turkey
action approx
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 Turkey
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 ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?w ) AS ?i ) WHERE { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p property:diplomatic_relation ?w } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Turkey property:diplomatic_relation ?u } } . FILTER ( ?i = ?a ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q55 Q142 Q36
SYSTEM
Netherlands, France, Poland
Q702 Q804 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q265 Q37 Q712 Q711 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 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 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
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q43
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?w ) AS ?i ) WHERE { ?w rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q15617994 . ?p property:P530 ?w } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { ?u rdf:type ontology:Q15617994 . resource:Q43 property:P530 ?u } } . FILTER ( ?i = ?a ) }
Federated States of Micronesia Panama Costa Rica 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 Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Central African Republic 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 Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman 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 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
Netherlands France Poland
action approx
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 Turkey
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 ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?w ) AS ?i ) WHERE { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p property:diplomatic_relation ?w } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Turkey property:diplomatic_relation ?u } } . FILTER ( ?i = ?a ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q207815
P710
Q15275719
USER
Did those administrative territories particiate in Eurovision Song Contest 1996 ?
(Q207815,P710,Q55) (Q207815,P710,Q142) (Q207815,P710,Q36)
action is_in
entity prev_answer
action find
entity Q207815
relation P710
['Q207815', 'P710', 'Q55'] ['Q207815', 'P710', 'Q142'] ['Q207815', 'P710', 'Q36']
ASK WHERE { VALUES ( ?n ) { ( resource:Q702 ) ( resource:Q804 ) ( resource:Q800 ) } . resource:Q207815 property:P710 ?n }
Eurovision Song Contest 1996
action is_in
entity prev_answer
action find
entity Eurovision Song Contest 1996
relation participant
['Eurovision Song Contest 1996', 'participant', 'Netherlands'] ['Eurovision Song Contest 1996', 'participant', 'France'] ['Eurovision Song Contest 1996', 'participant', 'Poland']
ASK WHERE { VALUES ( ?n ) { ( resource:Federated_States_of_Micronesia ) ( resource:Panama ) ( resource:Costa_Rica ) } . resource:Eurovision_Song_Contest_1996 property:participant ?n }
[]
recurring event
SYSTEM
YES
(Q207815,P710,Q55) (Q207815,P710,Q142) (Q207815,P710,Q36)
action is_in
entity prev_answer
action find
entity Q207815
relation P710
[ANSWER]
['Q207815', 'P710', 'Q55'] ['Q207815', 'P710', 'Q142'] ['Q207815', 'P710', 'Q36']
ASK WHERE { VALUES ( ?n ) { ( resource:Q702 ) ( resource:Q804 ) ( resource:Q800 ) } . resource:Q207815 property:P710 ?n }
Yes
action is_in
entity prev_answer
action find
entity Eurovision Song Contest 1996
relation participant
['Eurovision Song Contest 1996', 'participant', 'Netherlands'] ['Eurovision Song Contest 1996', 'participant', 'France'] ['Eurovision Song Contest 1996', 'participant', 'Poland']
ASK WHERE { VALUES ( ?n ) { ( resource:Federated_States_of_Micronesia ) ( resource:Panama ) ( resource:Costa_Rica ) } . resource:Eurovision_Song_Contest_1996 property:participant ?n }
[]