Simple Question (Direct)
Simple Question
Q771036
P1313
Q12737077
USER
Which occupation serves as the political office that is fulfilled by the head of the government of Alforja ?
(Q771036,P1313,c(Q12737077))
action filter_type
action find
entity Q771036
relation P1313
type Q12737077
['Q771036', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q771036 property:P1313 ?z . ?z rdf:type ontology:Q12737077 }
Alforja
action filter_type
action find
entity Alforja
relation office held by head of government
type occupation
['Alforja', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Alforja property:office_held_by_head_of_government ?z . ?z rdf:type ontology:occupation }
[]
occupation
Q26699929
SYSTEM
mayor of Alforja
Q26699929
(Q771036,P1313,c(Q12737077))
action filter_type
action find
entity Q771036
relation P1313
type Q12737077
The [ANSWER] serves as the political office that is fulfilled by the head of the government of Alforja
['Q771036', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q771036 property:P1313 ?z . ?z rdf:type ontology:Q12737077 }
mayor of Alforja
The mayor of Alforja serves as the political office that is fulfilled by the head of the government of Alforja
mayor of Alforja
action filter_type
action find
entity Alforja
relation office held by head of government
type occupation
['Alforja', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Alforja property:office_held_by_head_of_government ?z . ?z rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q26699929
P1001
Q1048835
USER
Which political territory comes under the supervision of that occupation ?
(Q26699929,P1001,c(Q1048835))
action filter_type
action find
entity Q26699929
relation P1001
type Q1048835
['Q26699929', 'P1001', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { resource:Q26699929 property:P1001 ?u . ?u rdf:type ontology:Q1048835 }
mayor of Alforja
action filter_type
action find
entity mayor of Alforja
relation applies to jurisdiction
type political territorial entity
['mayor of Alforja', 'applies to jurisdiction', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:mayor_of_Alforja property:applies_to_jurisdiction ?u . ?u rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q771036
SYSTEM
Alforja
Q771036
(Q26699929,P1001,c(Q1048835))
action filter_type
action find
entity Q26699929
relation P1001
type Q1048835
[ANSWER] comes under the supervision of that occupation
['Q26699929', 'P1001', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { resource:Q26699929 property:P1001 ?u . ?u rdf:type ontology:Q1048835 }
Alforja
Alforja comes under the supervision of that occupation
Alforja
action filter_type
action find
entity mayor of Alforja
relation applies to jurisdiction
type political territorial entity
['mayor of Alforja', 'applies to jurisdiction', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:mayor_of_Alforja property:applies_to_jurisdiction ?u . ?u rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q26699929
P17
Q15617994
USER
Which administrative territory is that occupation located in ?
(Q771036,P17,c(Q15617994))
action filter_type
action find
entity Q26699929
relation P17
type Q15617994
['Q771036', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q26699929 property:P17 ?q . ?q rdf:type ontology:Q15617994 }
mayor of Alforja
action filter_type
action find
entity mayor of Alforja
relation country
type designation for an administrative territorial entity
['Alforja', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:mayor_of_Alforja property:country ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
(Q771036,P17,c(Q15617994))
action filter_type
action find
entity Q26699929
relation P17
type Q15617994
That occupation is located in [ANSWER]
['Q771036', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q26699929 property:P17 ?q . ?q rdf:type ontology:Q15617994 }
Spain
That occupation is located in Spain
Spain
action filter_type
action find
entity mayor of Alforja
relation country
type designation for an administrative territorial entity
['Alforja', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:mayor_of_Alforja property:country ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q29 Q2275668
P27
Q502895
USER
Is Andrés Pajares a citizen of that administrative territory ?
(Q2275668,P27,Q29)
action is_in
entity Q29
action find
entity Q2275668
relation P27
['Q2275668', 'P27', 'Q29']
ASK WHERE { resource:Q2275668 property:P27 resource:Q29 }
Spain Andrés Pajares
action is_in
entity Spain
action find
entity Andrés Pajares
relation country of citizenship
['Andrés Pajares', 'country of citizenship', 'Spain']
ASK WHERE { resource:Andrés_Pajares property:country_of_citizenship resource:Spain }
[]
common name
SYSTEM
YES
(Q2275668,P27,Q29)
action is_in
entity Q29
action find
entity Q2275668
relation P27
[ANSWER]
['Q2275668', 'P27', 'Q29']
ASK WHERE { resource:Q2275668 property:P27 resource:Q29 }
Yes
action is_in
entity Spain
action find
entity Andrés Pajares
relation country of citizenship
['Andrés Pajares', 'country of citizenship', 'Spain']
ASK WHERE { resource:Andrés_Pajares property:country_of_citizenship resource:Spain }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q29
P530
Q1048835
USER
How many political territories have diplomatic relationships with Spain ?
(Q29,P530,c(Q1048835))
action count
action filter_type
action find
entity Q29
relation P530
type Q1048835
['Q29', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { resource:Q29 property:P530 ?m . ?m rdf:type ontology:Q1048835 }
Spain
action count
action filter_type
action find
entity Spain
relation diplomatic relation
type political territorial entity
['Spain', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { resource:Spain property:diplomatic_relation ?m . ?m rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
2
Q408 Q183
(Q29,P530,c(Q1048835))
action count
action filter_type
action find
entity Q29
relation P530
type Q1048835
[ANSWER]
['Q29', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { resource:Q29 property:P530 ?m . ?m rdf:type ontology:Q1048835 }
Australia Germany
2
action count
action filter_type
action find
entity Spain
relation diplomatic relation
type political territorial entity
['Spain', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { resource:Spain property:diplomatic_relation ?m . ?m rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q30
Q1048835
USER
And how about United States of America?
(Q30,P530,c(Q1048835))
action count
action filter_type
action find
entity Q30
relation P530
type Q1048835
['Q30', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { resource:Q30 property:P530 ?g . ?g rdf:type ontology:Q1048835 }
United States of America
action count
action filter_type
action find
entity United States of America
relation diplomatic relation
type political territorial entity
['United States of America', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { resource:United_States_of_America property:diplomatic_relation ?g . ?g rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
3
(Q30,P530,c(Q1048835))
action count
action filter_type
action find
entity Q30
relation P530
type Q1048835
[ANSWER]
['Q30', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { resource:Q30 property:P530 ?g . ?g rdf:type ontology:Q1048835 }
3
action count
action filter_type
action find
entity United States of America
relation diplomatic relation
type political territorial entity
['United States of America', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { resource:United_States_of_America property:diplomatic_relation ?g . ?g rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories holds diplomatic relationship with atmost 13 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action atmost
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
value 13
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?r ) AS ?s ) WHERE { ?r property:P530 ?n . ?n rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q15617994 } GROUP BY ?n } . FILTER ( ?s <= 13 ) }
action atmost
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 13
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?r ) AS ?s ) WHERE { ?r property:diplomatic_relation ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } . FILTER ( ?s <= 13 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q230 Q55 Q36
SYSTEM
Georgia, Netherlands, Poland
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q145 Q262 Q783 Q784 Q265 Q37 Q712 Q711 Q710 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 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 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 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action atmost
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
value 13
[ANSWERS] hold diplomatic relationship with atmost 13 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?r ) AS ?s ) WHERE { ?r property:P530 ?n . ?n rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q15617994 } GROUP BY ?n } . FILTER ( ?s <= 13 ) }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands United Kingdom Algeria Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati 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 Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador 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 Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand Zambia
Georgia, Netherlands and Poland hold diplomatic relationship with atmost 13 administrative territories
Georgia Netherlands Poland
action atmost
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 13
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?r ) AS ?s ) WHERE { ?r property:diplomatic_relation ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } . FILTER ( ?s <= 13 ) }
[]