Simple Question (Direct)
Simple Question
Q5294521
P39
Q12737077
USER
Which occupation was a position held by Donald Horne Macfarlane ?
(Q5294521,P39,c(Q12737077))
action filter_type
action find
entity Q5294521
relation P39
type Q12737077
['Q5294521', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q5294521 property:P39 ?g . ?g rdf:type ontology:Q12737077 }
Donald Horne Macfarlane
action filter_type
action find
entity Donald Horne Macfarlane
relation position held
type occupation
['Donald Horne Macfarlane', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Donald_Horne_Macfarlane property:position_held ?g . ?g rdf:type ontology:occupation }
[]
occupation
Q16707842
SYSTEM
Member of Parliament in the United Kingdom
Q16707842
(Q5294521,P39,c(Q12737077))
action filter_type
action find
entity Q5294521
relation P39
type Q12737077
The [ANSWER] was a position held by Donald Horne Macfarlane
['Q5294521', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q5294521 property:P39 ?g . ?g rdf:type ontology:Q12737077 }
Member of Parliament in the United Kingdom
The Member of Parliament in the United Kingdom was a position held by Donald Horne Macfarlane
Member of Parliament in the United Kingdom
action filter_type
action find
entity Donald Horne Macfarlane
relation position held
type occupation
['Donald Horne Macfarlane', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Donald_Horne_Macfarlane property:position_held ?g . ?g rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5294521
P102
Q7210356
USER
Which party is Donald Horne Macfarlane affiliated with ?
(Q5294521,P102,c(Q7210356))
action filter_type
action find
entity Q5294521
relation P102
type Q7210356
['Q5294521', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q7210356 . resource:Q5294521 property:P102 ?c }
Donald Horne Macfarlane
action filter_type
action find
entity Donald Horne Macfarlane
relation member of political party
type political organization
['Donald Horne Macfarlane', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:political_organization . resource:Donald_Horne_Macfarlane property:member_of_political_party ?c }
[]
political organization
Q622441
SYSTEM
Liberal Party
Q622441
(Q5294521,P102,c(Q7210356))
action filter_type
action find
entity Q5294521
relation P102
type Q7210356
Donald Horne Macfarlane is affiliated with [ANSWER]
['Q5294521', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q7210356 . resource:Q5294521 property:P102 ?c }
Liberal Party
Donald Horne Macfarlane is affiliated with Liberal Party
Liberal Party
action filter_type
action find
entity Donald Horne Macfarlane
relation member of political party
type political organization
['Donald Horne Macfarlane', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:political_organization . resource:Donald_Horne_Macfarlane property:member_of_political_party ?c }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2851073
Q7210356
USER
And also tell me about Anne Emery-Dumas?
(Q2851073,P102,c(Q7210356))
action filter_type
action find
entity Q2851073
relation P102
type Q7210356
['Q2851073', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?s WHERE { resource:Q2851073 property:P102 ?s . ?s rdf:type ontology:Q7210356 }
Anne Emery-Dumas
action filter_type
action find
entity Anne Emery-Dumas
relation member of political party
type political organization
['Anne Emery-Dumas', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?s WHERE { resource:Anne_Emery-Dumas property:member_of_political_party ?s . ?s rdf:type ontology:political_organization }
[]
political organization
Q170972
SYSTEM
Socialist Party
Q170972
(Q2851073,P102,c(Q7210356))
action filter_type
action find
entity Q2851073
relation P102
type Q7210356
[ANSWER]
['Q2851073', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?s WHERE { resource:Q2851073 property:P102 ?s . ?s rdf:type ontology:Q7210356 }
Socialist Party
Socialist Party
action filter_type
action find
entity Anne Emery-Dumas
relation member of political party
type political organization
['Anne Emery-Dumas', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?s WHERE { resource:Anne_Emery-Dumas property:member_of_political_party ?s . ?s rdf:type ontology:political_organization }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q170972 Q1684726 Q15436780
P488
Q502895
USER
Does that political organization have Jean-Christophe Cambadélis and Hans Lindenhayn as its chairperson ?
(Q170972,P488,Q1684726) (Q170972,P488,Q15436780)
action is_in
entity Q170972
action intersection
action find_reverse
entity Q1684726
relation P488
action find_reverse
entity Q15436780
relation P488
['Q170972', 'P488', 'Q1684726'] ['Q170972', 'P488', 'Q15436780']
ASK WHERE { resource:Q170972 property:P488 resource:Q1684726 . resource:Q170972 property:P488 resource:Q15436780 }
Socialist Party Jean-Christophe Cambadélis Hans Lindenhayn
action is_in
entity Socialist Party
action intersection
action find_reverse
entity Jean-Christophe Cambadélis
relation chairperson
action find_reverse
entity Hans Lindenhayn
relation chairperson
['Socialist Party', 'chairperson', 'Jean-Christophe Cambadélis'] ['Socialist Party', 'chairperson', 'Hans Lindenhayn']
ASK WHERE { resource:Socialist_Party property:chairperson resource:Jean-Christophe_Cambadélis . resource:Socialist_Party property:chairperson resource:Hans_Lindenhayn }
[]
common name
SYSTEM
YES and NO respectively
(Q170972,P488,Q1684726) (Q170972,P488,Q15436780)
action is_in
entity Q170972
action intersection
action find_reverse
entity Q1684726
relation P488
action find_reverse
entity Q15436780
relation P488
[ANSWER]
['Q170972', 'P488', 'Q1684726'] ['Q170972', 'P488', 'Q15436780']
ASK WHERE { resource:Q170972 property:P488 resource:Q1684726 . resource:Q170972 property:P488 resource:Q15436780 }
YES and NO respectively
action is_in
entity Socialist Party
action intersection
action find_reverse
entity Jean-Christophe Cambadélis
relation chairperson
action find_reverse
entity Hans Lindenhayn
relation chairperson
['Socialist Party', 'chairperson', 'Jean-Christophe Cambadélis'] ['Socialist Party', 'chairperson', 'Hans Lindenhayn']
ASK WHERE { resource:Socialist_Party property:chairperson resource:Jean-Christophe_Cambadélis . resource:Socialist_Party property:chairperson resource:Hans_Lindenhayn }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q16707842 Q511825
P17
Q15617994
USER
Is Member of Parliament in the United Kingdom located in Ottenhofen ?
(Q16707842,P17,Q511825)
action is_in
entity Q511825
action find
entity Q16707842
relation P17
['Q16707842', 'P17', 'Q511825']
ASK WHERE { resource:Q16707842 property:P17 resource:Q511825 }
Member of Parliament in the United Kingdom Ottenhofen
action is_in
entity Ottenhofen
action find
entity Member of Parliament in the United Kingdom
relation country
['Member of Parliament in the United Kingdom', 'country', 'Ottenhofen']
ASK WHERE { resource:Member_of_Parliament_in_the_United_Kingdom property:country resource:Ottenhofen }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q16707842,P17,Q511825)
action is_in
entity Q511825
action find
entity Q16707842
relation P17
[ANSWER]
['Q16707842', 'P17', 'Q511825']
ASK WHERE { resource:Q16707842 property:P17 resource:Q511825 }
No
action is_in
entity Ottenhofen
action find
entity Member of Parliament in the United Kingdom
relation country
['Member of Parliament in the United Kingdom', 'country', 'Ottenhofen']
ASK WHERE { resource:Member_of_Parliament_in_the_United_Kingdom property:country resource:Ottenhofen }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q5620273 Q16707842
P1001 P17
Q15617994
USER
Which administrative territories are judicially linked to Member of Parliament in the United Kingdom or are Lociki present in ?
OR((Q16707842,P1001,c(Q15617994)), (Q5620273,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q16707842
relation P1001
action find
entity Q5620273
relation P17
type Q15617994
{'OR': [['Q16707842', 'P1001', {'concept': 'Q15617994'}], ['Q5620273', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q16707842 property:P1001 ?p } UNION { resource:Q5620273 property:P17 ?p } } . ?p rdf:type ontology:Q15617994 }
Lociki Member of Parliament in the United Kingdom
action filter_type
action union
action find
entity Member of Parliament in the United Kingdom
relation applies to jurisdiction
action find
entity Lociki
relation country
type designation for an administrative territorial entity
{'OR': [['Member of Parliament in the United Kingdom', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}], ['Lociki', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Member_of_Parliament_in_the_United_Kingdom property:applies_to_jurisdiction ?p } UNION { resource:Lociki property:country ?p } } . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q211 Q145
SYSTEM
Latvia, United Kingdom
Q211 Q145
OR((Q16707842,P1001,c(Q15617994)), (Q5620273,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q16707842
relation P1001
action find
entity Q5620273
relation P17
type Q15617994
[ANSWERS] are judicially linked to Member of Parliament in the United Kingdom or are Lociki present in
{'OR': [['Q16707842', 'P1001', {'concept': 'Q15617994'}], ['Q5620273', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q16707842 property:P1001 ?p } UNION { resource:Q5620273 property:P17 ?p } } . ?p rdf:type ontology:Q15617994 }
Latvia United Kingdom
Latvia and United Kingdom are judicially linked to Member of Parliament in the United Kingdom or are Lociki present in
Latvia United Kingdom
action filter_type
action union
action find
entity Member of Parliament in the United Kingdom
relation applies to jurisdiction
action find
entity Lociki
relation country
type designation for an administrative territorial entity
{'OR': [['Member of Parliament in the United Kingdom', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}], ['Lociki', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Member_of_Parliament_in_the_United_Kingdom property:applies_to_jurisdiction ?p } UNION { resource:Lociki property:country ?p } } . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have tactful political relations with max number of administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?j ) { SELECT DISTINCT ?p ( COUNT ( ?x ) AS ?z ) WHERE { ?p property:P530 ?x . ?p rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15617994 } GROUP BY ?p } } . { SELECT DISTINCT ?n ( COUNT ( ?k ) AS ?a ) WHERE { ?n property:P530 ?k . ?n rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15617994 } GROUP BY ?n } . FILTER ( ?a = ?j ) }
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
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 ?n WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?j ) { SELECT DISTINCT ?p ( COUNT ( ?x ) AS ?z ) WHERE { ?p property:diplomatic_relation ?x . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } } . { SELECT DISTINCT ?n ( COUNT ( ?k ) AS ?a ) WHERE { ?n property:diplomatic_relation ?k . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } . FILTER ( ?a = ?j ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q230
SYSTEM
Georgia
Q230
(c(Q15617994),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[ANSWER] have tactful political relations with max number of administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?j ) { SELECT DISTINCT ?p ( COUNT ( ?x ) AS ?z ) WHERE { ?p property:P530 ?x . ?p rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15617994 } GROUP BY ?p } } . { SELECT DISTINCT ?n ( COUNT ( ?k ) AS ?a ) WHERE { ?n property:P530 ?k . ?n rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15617994 } GROUP BY ?n } . FILTER ( ?a = ?j ) }
Georgia
Georgia have tactful political relations with max number of administrative territories
Georgia
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
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 ?n WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?j ) { SELECT DISTINCT ?p ( COUNT ( ?x ) AS ?z ) WHERE { ?p property:diplomatic_relation ?x . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } } . { SELECT DISTINCT ?n ( COUNT ( ?k ) AS ?a ) WHERE { ?n property:diplomatic_relation ?k . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } . FILTER ( ?a = ?j ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q769
P530
Q15617994 Q1048835
USER
How many political territories have diplomatic relations with more number of administrative territories than Grenada ?
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q769
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?j ) AS ?i ) WHERE { ?a rdf:type ontology:Q1048835 . ?j rdf:type ontology:Q15617994 . ?a property:P530 ?j } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?c ) WHERE { resource:Q769 property:P530 ?f . ?f rdf:type ontology:Q15617994 } } . FILTER ( ?i > ?c ) }
Grenada
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Grenada
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?j ) AS ?i ) WHERE { ?a rdf:type ontology:political_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a property:diplomatic_relation ?j } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?c ) WHERE { resource:Grenada property:diplomatic_relation ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?i > ?c ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
7
Q40 Q183 Q408 Q35 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q769
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?j ) AS ?i ) WHERE { ?a rdf:type ontology:Q1048835 . ?j rdf:type ontology:Q15617994 . ?a property:P530 ?j } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?c ) WHERE { resource:Q769 property:P530 ?f . ?f rdf:type ontology:Q15617994 } } . FILTER ( ?i > ?c ) }
Austria Germany Australia Denmark Canada New Zealand Jamaica
7
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Grenada
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?j ) AS ?i ) WHERE { ?a rdf:type ontology:political_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a property:diplomatic_relation ?j } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?c ) WHERE { resource:Grenada property:diplomatic_relation ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?i > ?c ) }
[]
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 tactful political relations with exactly 53 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action count
action equal
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 53
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?p ) AS ?a ) WHERE { ?q property:P530 ?p . ?q rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q15617994 } GROUP BY ?q } . FILTER ( ?a = 53 ) }
action count
action equal
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 53
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?p ) AS ?a ) WHERE { ?q property:diplomatic_relation ?p . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } . FILTER ( ?a = 53 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
1
Q155
(c(Q15617994),P530,c(Q15617994))
action count
action equal
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 53
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?p ) AS ?a ) WHERE { ?q property:P530 ?p . ?q rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q15617994 } GROUP BY ?q } . FILTER ( ?a = 53 ) }
Brazil
1
action count
action equal
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 53
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?p ) AS ?a ) WHERE { ?q property:diplomatic_relation ?p . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } . FILTER ( ?a = 53 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q79
P530
Q15617994 Q15617994
USER
How many administrative territories have diplomatic relations with lesser number of administrative territories than Egypt ?
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q79
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?b ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?t ) AS ?q ) WHERE { ?t property:P530 ?c . ?t rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q15617994 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?n ) WHERE { ?e property:P530 resource:Q79 . ?e rdf:type ontology:Q15617994 } } . FILTER ( ?q < ?n ) }
Egypt
action count
action less
action find_reverse_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_reverse
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 ( COUNT ( ?c ) AS ?b ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?t ) AS ?q ) WHERE { ?t property:diplomatic_relation ?c . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?n ) WHERE { ?e property:diplomatic_relation resource:Egypt . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?q < ?n ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
152
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q262 Q783 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q398 Q657 Q258 Q45 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 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 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q79
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?b ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?t ) AS ?q ) WHERE { ?t property:P530 ?c . ?t rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q15617994 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?n ) WHERE { ?e property:P530 resource:Q79 . ?e rdf:type ontology:Q15617994 } } . FILTER ( ?q < ?n ) }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands Algeria Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Indonesia Armenia Bahrain Chad South Africa Portugal 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 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 Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Togo Tonga Spain New Caledonia Thailand Zambia
152
action count
action less
action find_reverse_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_reverse
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 ( COUNT ( ?c ) AS ?b ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?t ) AS ?q ) WHERE { ?t property:diplomatic_relation ?c . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?n ) WHERE { ?e property:diplomatic_relation resource:Egypt . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?q < ?n ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q30
P530
Q15617994 Q15617994
USER
And also tell me about United States of America?
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q30
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?k ) AS ?f ) WHERE { ?k rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q15617994 . ?k property:P530 ?v } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { ?j property:P530 resource:Q30 . ?j rdf:type ontology:Q15617994 } } . FILTER ( ?f < ?x ) }
United States of America
action count
action less
action find_reverse_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_reverse
entity United States of America
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 ( COUNT ( ?v ) AS ?y ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?k ) AS ?f ) WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k property:diplomatic_relation ?v } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { ?j property:diplomatic_relation resource:United_States_of_America . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?f < ?x ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
162
Q702 Q804 Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 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 count
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q30
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?k ) AS ?f ) WHERE { ?k rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q15617994 . ?k property:P530 ?v } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { ?j property:P530 resource:Q30 . ?j rdf:type ontology:Q15617994 } } . FILTER ( ?f < ?x ) }
Federated States of Micronesia Panama Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China 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
162
action count
action less
action find_reverse_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_reverse
entity United States of America
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 ( COUNT ( ?v ) AS ?y ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?k ) AS ?f ) WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k property:diplomatic_relation ?v } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { ?j property:diplomatic_relation resource:United_States_of_America . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?f < ?x ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q145 Q229
P463
Q874405
USER
How many social groups were United Kingdom and Cyprus a member of ?
(Q145,P463,c(Q874405)) (Q229,P463,c(Q874405))
action count
action intersection
action filter_type
action find
entity Q145
relation P463
type Q874405
action filter_type
action find
entity Q229
relation P463
type Q874405
['Q145', 'P463', {'concept': 'Q874405'}] ['Q229', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { resource:Q145 property:P463 ?h . ?h rdf:type ontology:Q874405 . resource:Q229 property:P463 ?h . ?h rdf:type ontology:Q874405 }
United Kingdom Cyprus
action count
action intersection
action filter_type
action find
entity United Kingdom
relation member of
type social group
action filter_type
action find
entity Cyprus
relation member of
type social group
['United Kingdom', 'member of', {'concept': 'social group'}] ['Cyprus', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { resource:United_Kingdom property:member_of ?h . ?h rdf:type ontology:social_group . resource:Cyprus property:member_of ?h . ?h rdf:type ontology:social_group }
[]
social group
SYSTEM
2
Q782942 Q8908
(Q145,P463,c(Q874405)) (Q229,P463,c(Q874405))
action count
action intersection
action filter_type
action find
entity Q145
relation P463
type Q874405
action filter_type
action find
entity Q229
relation P463
type Q874405
[ANSWER]
['Q145', 'P463', {'concept': 'Q874405'}] ['Q229', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { resource:Q145 property:P463 ?h . ?h rdf:type ontology:Q874405 . resource:Q229 property:P463 ?h . ?h rdf:type ontology:Q874405 }
Australia Group Council of Europe
2
action count
action intersection
action filter_type
action find
entity United Kingdom
relation member of
type social group
action filter_type
action find
entity Cyprus
relation member of
type social group
['United Kingdom', 'member of', {'concept': 'social group'}] ['Cyprus', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { resource:United_Kingdom property:member_of ?h . ?h rdf:type ontology:social_group . resource:Cyprus property:member_of ?h . ?h rdf:type ontology:social_group }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P30
Q2221906
USER
Where is United Kingdom located ?
action filter_type
action find
entity Q145
relation P30
type Q2221906
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q2221906 . resource:Q145 property:P30 ?c }
United Kingdom
action filter_type
action find
entity United Kingdom
relation continent
type geographic location
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:geographic_location . resource:United_Kingdom property:continent ?c }
[]
geographic location
Q46
SYSTEM
Europe
Q46
action filter_type
action find
entity Q145
relation P30
type Q2221906
United Kingdom is located in [ANSWER]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q2221906 . resource:Q145 property:P30 ?c }
Europe
United Kingdom is located in Europe
Europe
action filter_type
action find
entity United Kingdom
relation continent
type geographic location
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:geographic_location . resource:United_Kingdom property:continent ?c }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P750
Q166142
USER
Which applications have United Kingdom as their distributor ?
(c(Q166142),P750,Q145)
action filter_type
action find_reverse
entity Q145
relation P750
type Q166142
[{'concept': 'Q166142'}, 'P750', 'Q145']
SELECT DISTINCT ?p WHERE { ?p property:P750 resource:Q145 . ?p rdf:type ontology:Q166142 }
United Kingdom
action filter_type
action find_reverse
entity United Kingdom
relation distributor
type application
[{'concept': 'application'}, 'distributor', 'United Kingdom']
SELECT DISTINCT ?p WHERE { ?p property:distributor resource:United_Kingdom . ?p rdf:type ontology:application }
[]
application
Q610749 Q1305295 Q1423320
SYSTEM
Mega Man 7, Pilotwings, GTR – FIA GT Racing Game
Q1423320 Q1305295 Q610749 Q3038553
(c(Q166142),P750,Q145)
action filter_type
action find_reverse
entity Q145
relation P750
type Q166142
[ANSWERS] have United Kingdom as their distributor
[{'concept': 'Q166142'}, 'P750', 'Q145']
SELECT DISTINCT ?p WHERE { ?p property:P750 resource:Q145 . ?p rdf:type ontology:Q166142 }
GTR – FIA GT Racing Game Pilotwings Mega Man 7 Dracula: Origin
Mega Man 7, Pilotwings and GTR – FIA GT Racing Game have United Kingdom as their distributor
Mega Man 7 Pilotwings GTR – FIA GT Racing Game
action filter_type
action find_reverse
entity United Kingdom
relation distributor
type application
[{'concept': 'application'}, 'distributor', 'United Kingdom']
SELECT DISTINCT ?p WHERE { ?p property:distributor resource:United_Kingdom . ?p rdf:type ontology:application }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q46
P706
Q82794
USER
Which geographic region is Europe located on ?
(Q46,P706,c(Q82794))
action filter_type
action find
entity Q46
relation P706
type Q82794
['Q46', 'P706', {'concept': 'Q82794'}]
SELECT DISTINCT ?j WHERE { resource:Q46 property:P706 ?j . ?j rdf:type ontology:Q82794 }
Europe
action filter_type
action find
entity Europe
relation located on terrain feature
type geographic region
['Europe', 'located on terrain feature', {'concept': 'geographic region'}]
SELECT DISTINCT ?j WHERE { resource:Europe property:located_on_terrain_feature ?j . ?j rdf:type ontology:geographic_region }
[]
geographic region
Q39061
SYSTEM
Northern Hemisphere
Q39061
(Q46,P706,c(Q82794))
action filter_type
action find
entity Q46
relation P706
type Q82794
Europe is located in [ANSWER]
['Q46', 'P706', {'concept': 'Q82794'}]
SELECT DISTINCT ?j WHERE { resource:Q46 property:P706 ?j . ?j rdf:type ontology:Q82794 }
Northern Hemisphere
Europe is located in Northern Hemisphere
Northern Hemisphere
action filter_type
action find
entity Europe
relation located on terrain feature
type geographic region
['Europe', 'located on terrain feature', {'concept': 'geographic region'}]
SELECT DISTINCT ?j WHERE { resource:Europe property:located_on_terrain_feature ?j . ?j rdf:type ontology:geographic_region }
[]