Simple Question (Direct)
Simple Question
Q11864986
P27
Q15617994
USER
Which administrative territory is Ioan Toman a civilian of ?
(Q11864986,P27,c(Q15617994))
action filter_type
action find
entity Q11864986
relation P27
type Q15617994
['Q11864986', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q11864986 property:P27 ?e . ?e rdf:type ontology:Q15617994 }
Ioan Toman
action filter_type
action find
entity Ioan Toman
relation country of citizenship
type designation for an administrative territorial entity
['Ioan Toman', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Ioan_Toman property:country_of_citizenship ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q218
SYSTEM
Romania
Q218
(Q11864986,P27,c(Q15617994))
action filter_type
action find
entity Q11864986
relation P27
type Q15617994
[ANSWER]
['Q11864986', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q11864986 property:P27 ?e . ?e rdf:type ontology:Q15617994 }
Romania
Romania
action filter_type
action find
entity Ioan Toman
relation country of citizenship
type designation for an administrative territorial entity
['Ioan Toman', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Ioan_Toman property:country_of_citizenship ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11864986
P21
Q290
USER
Which sex does that person possess ?
(Q218,P21,c(Q290))
action filter_type
action find
entity Q11864986
relation P21
type Q290
['Q218', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { resource:Q11864986 property:P21 ?v . ?v rdf:type ontology:Q290 }
Ioan Toman
action filter_type
action find
entity Ioan Toman
relation gender
type sex
['Romania', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { resource:Ioan_Toman property:gender ?v . ?v rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q218,P21,c(Q290))
action filter_type
action find
entity Q11864986
relation P21
type Q290
[ANSWER]
['Q218', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { resource:Q11864986 property:P21 ?v . ?v rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity Ioan Toman
relation gender
type sex
['Romania', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { resource:Ioan_Toman property:gender ?v . ?v rdf:type ontology:sex }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P21
Q290 Q502895
USER
Which sexes are the sex of lesser number of people than that sex ?
(c(Q502895),P21,c(Q290))
action less
action find_reverse_tuple_counts
relation P21
type Q290
type Q502895
action count
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q502895
[{'concept': 'Q502895'}, 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?h ) AS ?m ) WHERE { ?e rdf:type ontology:Q290 . ?h rdf:type ontology:Q502895 . ?h property:P21 ?e } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) WHERE { ?l rdf:type ontology:Q502895 . ?l property:P21 resource:Q6581097 } } . FILTER ( ?m < ?n ) }
action less
action find_reverse_tuple_counts
relation gender
type sex
type common name
action count
action filter_type
action find_reverse
entity male
relation gender
type common name
[{'concept': 'common name'}, 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?h ) AS ?m ) WHERE { ?e rdf:type ontology:sex . ?h rdf:type ontology:common_name . ?h property:gender ?e } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) WHERE { ?l rdf:type ontology:common_name . ?l property:gender resource:male } } . FILTER ( ?m < ?n ) }
[]
sex common name
Q6581072
SYSTEM
female
Q6581072
(c(Q502895),P21,c(Q290))
action less
action find_reverse_tuple_counts
relation P21
type Q290
type Q502895
action count
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?h ) AS ?m ) WHERE { ?e rdf:type ontology:Q290 . ?h rdf:type ontology:Q502895 . ?h property:P21 ?e } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) WHERE { ?l rdf:type ontology:Q502895 . ?l property:P21 resource:Q6581097 } } . FILTER ( ?m < ?n ) }
female
female
action less
action find_reverse_tuple_counts
relation gender
type sex
type common name
action count
action filter_type
action find_reverse
entity male
relation gender
type common name
[{'concept': 'common name'}, 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?h ) AS ?m ) WHERE { ?e rdf:type ontology:sex . ?h rdf:type ontology:common_name . ?h property:gender ?e } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) WHERE { ?l rdf:type ontology:common_name . ?l property:gender resource:male } } . FILTER ( ?m < ?n ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories holds diplomatic relationship with min number of administrative territories ?
(c(Q15617994),P530,Q766)
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?z ) AS ?l ) { SELECT DISTINCT ?m ( COUNT ( ?a ) AS ?z ) WHERE { ?m property:P530 ?a . ?m rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q15617994 } GROUP BY ?m } } . FILTER ( ?j = ?l ) . { SELECT DISTINCT ?x ( COUNT ( ?k ) AS ?j ) WHERE { ?x property:P530 ?k . ?x rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q15617994 } GROUP BY ?x } }
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?z ) AS ?l ) { SELECT DISTINCT ?m ( COUNT ( ?a ) AS ?z ) WHERE { ?m property:diplomatic_relation ?a . ?m rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } } . FILTER ( ?j = ?l ) . { SELECT DISTINCT ?x ( COUNT ( ?k ) AS ?j ) WHERE { ?x property:diplomatic_relation ?k . ?x rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } }
[]
political territorial entity designation for an administrative territorial entity
Q685 Q691
SYSTEM
Solomon Islands, Papua New Guinea
Q685 Q691
(c(Q15617994),P530,Q766)
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?z ) AS ?l ) { SELECT DISTINCT ?m ( COUNT ( ?a ) AS ?z ) WHERE { ?m property:P530 ?a . ?m rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q15617994 } GROUP BY ?m } } . FILTER ( ?j = ?l ) . { SELECT DISTINCT ?x ( COUNT ( ?k ) AS ?j ) WHERE { ?x property:P530 ?k . ?x rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q15617994 } GROUP BY ?x } }
Solomon Islands Papua New Guinea
Solomon Islands Papua New Guinea
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?z ) AS ?l ) { SELECT DISTINCT ?m ( COUNT ( ?a ) AS ?z ) WHERE { ?m property:diplomatic_relation ?a . ?m rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } } . FILTER ( ?j = ?l ) . { SELECT DISTINCT ?x ( COUNT ( ?k ) AS ?j ) WHERE { ?x property:diplomatic_relation ?k . ?x rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
Which administrative territories have tactful political relations with exactly 2 political territories ?
(c(Q15617994),P530,c(Q1048835))
action equal
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 2
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?a ) AS ?m ) WHERE { ?i property:P530 ?a . ?i rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q1048835 } GROUP BY ?i } . FILTER ( ?m = 2 ) }
action equal
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 2
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?a ) AS ?m ) WHERE { ?i property:diplomatic_relation ?a . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:political_territorial_entity } GROUP BY ?i } . FILTER ( ?m = 2 ) }
[]
political territorial entity designation for an administrative territorial entity
Q55 Q148 Q184
SYSTEM
Netherlands, People's Republic of China, Belarus
Q804 Q800 Q419 Q668 Q414 Q55 Q148 Q783 Q45 Q41 Q796 Q794 Q954 Q881 Q811 Q31 Q924 Q928 Q733 Q734 Q736 Q233 Q1041 Q184 Q1028 Q786 Q225 Q224 Q96 Q347 Q17 Q902 Q1036 Q1033 Q963 Q298 Q117 Q750 Q213 Q215 Q219 Q916 Q1009 Q774 Q810 Q29 Q869
(c(Q15617994),P530,c(Q1048835))
action equal
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 2
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?a ) AS ?m ) WHERE { ?i property:P530 ?a . ?i rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q1048835 } GROUP BY ?i } . FILTER ( ?m = 2 ) }
Panama Costa Rica Peru India Argentina Netherlands People's Republic of China Honduras Portugal Greece Iraq Iran Zimbabwe Vietnam Nicaragua Belgium Tanzania Philippines Paraguay Guyana Ecuador Malta Senegal Belarus Morocco Dominican Republic Bosnia and Herzegovina Croatia Mexico Liechtenstein Japan Bangladesh Uganda Nigeria Botswana Chile Ghana Bolivia Czech Republic Slovenia Bulgaria Angola Cameroon Guatemala Jordan Spain Thailand
Netherlands People's Republic of China Belarus
action equal
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 2
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?a ) AS ?m ) WHERE { ?i property:diplomatic_relation ?a . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:political_territorial_entity } GROUP BY ?i } . FILTER ( ?m = 2 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1998366
P530
Q1048835
USER
Do Foros de Vale de Figueira have ambassadorial relations with those administrative territories ?
(Q1998366,P530,Q55) (Q1998366,P530,Q148) (Q1998366,P530,Q184)
action is_in
entity prev_answer
action find
entity Q1998366
relation P530
['Q1998366', 'P530', 'Q55'] ['Q1998366', 'P530', 'Q148'] ['Q1998366', 'P530', 'Q184']
ASK WHERE { resource:Q1998366 property:P530 ?p . VALUES ( ?p ) { ( resource:Q804 ) ( resource:Q800 ) ( resource:Q419 ) } }
Foros de Vale de Figueira
action is_in
entity prev_answer
action find
entity Foros de Vale de Figueira
relation diplomatic relation
['Foros de Vale de Figueira', 'diplomatic relation', 'Netherlands'] ['Foros de Vale de Figueira', 'diplomatic relation', "People's Republic of China"] ['Foros de Vale de Figueira', 'diplomatic relation', 'Belarus']
ASK WHERE { resource:Foros_de_Vale_de_Figueira property:diplomatic_relation ?p . VALUES ( ?p ) { ( resource:Panama ) ( resource:Costa_Rica ) ( resource:Peru ) } }
[]
political territorial entity
SYSTEM
NO
(Q1998366,P530,Q55) (Q1998366,P530,Q148) (Q1998366,P530,Q184)
action is_in
entity prev_answer
action find
entity Q1998366
relation P530
[ANSWER]
['Q1998366', 'P530', 'Q55'] ['Q1998366', 'P530', 'Q148'] ['Q1998366', 'P530', 'Q184']
ASK WHERE { resource:Q1998366 property:P530 ?p . VALUES ( ?p ) { ( resource:Q804 ) ( resource:Q800 ) ( resource:Q419 ) } }
No
action is_in
entity prev_answer
action find
entity Foros de Vale de Figueira
relation diplomatic relation
['Foros de Vale de Figueira', 'diplomatic relation', 'Netherlands'] ['Foros de Vale de Figueira', 'diplomatic relation', "People's Republic of China"] ['Foros de Vale de Figueira', 'diplomatic relation', 'Belarus']
ASK WHERE { resource:Foros_de_Vale_de_Figueira property:diplomatic_relation ?p . VALUES ( ?p ) { ( resource:Panama ) ( resource:Costa_Rica ) ( resource:Peru ) } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q347 Q685
P463
Q484652
USER
Which international organizations were Solomon Islands or Liechtenstein a member of ?
OR((Q685,P463,c(Q484652)), (Q347,P463,c(Q484652)))
action filter_type
action union
action find
entity Q685
relation P463
action find
entity Q347
relation P463
type Q484652
{'OR': [['Q685', 'P463', {'concept': 'Q484652'}], ['Q347', 'P463', {'concept': 'Q484652'}]]}
SELECT DISTINCT ?y WHERE { { VALUES ( ?o ) { ( resource:Q685 ) ( resource:Q347 ) } . ?o property:P463 ?y } . ?y rdf:type ontology:Q484652 }
Liechtenstein Solomon Islands
action filter_type
action union
action find
entity Solomon Islands
relation member of
action find
entity Liechtenstein
relation member of
type international organization
{'OR': [['Solomon Islands', 'member of', {'concept': 'international organization'}], ['Liechtenstein', 'member of', {'concept': 'international organization'}]]}
SELECT DISTINCT ?y WHERE { { VALUES ( ?o ) { ( resource:Solomon_Islands ) ( resource:Liechtenstein ) } . ?o property:member_of ?y } . ?y rdf:type ontology:international_organization }
[]
international organization
Q47488 Q8475 Q188822 Q1065 Q1045198 Q166546 Q182000 Q17495 Q842490 Q496967
SYSTEM
Some of them are International Criminal Court, Interpol, Asian Development Bank, United Nations, Permanent Court of Arbitration, European Free Trade Association, United Nations Conference on Trade and Development, Universal Postal Union, Organisation for the Prohibition of Chemical Weapons, Alliance of Small Island States
Q496967 Q81299 Q842490 Q8475 Q7785 Q1065 Q188822 Q182000 Q166546 Q47488 Q778126 Q294278 Q17495 Q1043527 Q1045198
OR((Q685,P463,c(Q484652)), (Q347,P463,c(Q484652)))
action filter_type
action union
action find
entity Q685
relation P463
action find
entity Q347
relation P463
type Q484652
[ANSWERS]
{'OR': [['Q685', 'P463', {'concept': 'Q484652'}], ['Q347', 'P463', {'concept': 'Q484652'}]]}
SELECT DISTINCT ?y WHERE { { VALUES ( ?o ) { ( resource:Q685 ) ( resource:Q347 ) } . ?o property:P463 ?y } . ?y rdf:type ontology:Q484652 }
Alliance of Small Island States Organization for Security and Co-operation in Europe Organisation for the Prohibition of Chemical Weapons Interpol Commonwealth of Nations United Nations Asian Development Bank United Nations Conference on Trade and Development European Free Trade Association International Criminal Court Intelsat African, Caribbean and Pacific Group of States Universal Postal Union Multilateral Investment Guarantee Agency Permanent Court of Arbitration
International Criminal Court Interpol Asian Development Bank United Nations Permanent Court of Arbitration European Free Trade Association United Nations Conference on Trade and Development Universal Postal Union Organisation for the Prohibition of Chemical Weapons Alliance of Small Island States
action filter_type
action union
action find
entity Solomon Islands
relation member of
action find
entity Liechtenstein
relation member of
type international organization
{'OR': [['Solomon Islands', 'member of', {'concept': 'international organization'}], ['Liechtenstein', 'member of', {'concept': 'international organization'}]]}
SELECT DISTINCT ?y WHERE { { VALUES ( ?o ) { ( resource:Solomon_Islands ) ( resource:Liechtenstein ) } . ?o property:member_of ?y } . ?y rdf:type ontology:international_organization }
[]