Simple Question (Direct)
Simple Question
Q6144890
P102
Q7210356
USER
Which political organization is James W. Reilly a member of ?
(Q6144890,P102,c(Q7210356))
action filter_type
action find
entity Q6144890
relation P102
type Q7210356
['Q6144890', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?e WHERE { resource:Q6144890 property:P102 ?e . ?e rdf:type ontology:Q7210356 }
James W. Reilly
action filter_type
action find
entity James W. Reilly
relation member of political party
type political organization
['James W. Reilly', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?e WHERE { resource:James_W._Reilly property:member_of_political_party ?e . ?e rdf:type ontology:political_organization }
[]
political organization
Q29468
SYSTEM
Republican Party
Q29468
(Q6144890,P102,c(Q7210356))
action filter_type
action find
entity Q6144890
relation P102
type Q7210356
The [ANSWER] is James W. Reilly a member of
['Q6144890', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?e WHERE { resource:Q6144890 property:P102 ?e . ?e rdf:type ontology:Q7210356 }
Republican Party
The Republican Party is James W. Reilly a member of
Republican Party
action filter_type
action find
entity James W. Reilly
relation member of political party
type political organization
['James W. Reilly', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?e WHERE { resource:James_W._Reilly property:member_of_political_party ?e . ?e rdf:type ontology:political_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6144890
P1412
Q34770
USER
Which language is James W. Reilly capable of writing ?
(Q6144890,P1412,c(Q34770))
action filter_type
action find
entity Q6144890
relation P1412
type Q34770
['Q6144890', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?e WHERE { resource:Q6144890 property:P1412 ?e . ?e rdf:type ontology:Q34770 }
James W. Reilly
action filter_type
action find
entity James W. Reilly
relation languages spoken, written or signed
type language
['James W. Reilly', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?e WHERE { resource:James_W._Reilly property:languages_spoken,_written_or_signed ?e . ?e rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q6144890,P1412,c(Q34770))
action filter_type
action find
entity Q6144890
relation P1412
type Q34770
[ANSWER] is James W. Reilly capable of writing
['Q6144890', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?e WHERE { resource:Q6144890 property:P1412 ?e . ?e rdf:type ontology:Q34770 }
English
English is James W. Reilly capable of writing
English
action filter_type
action find
entity James W. Reilly
relation languages spoken, written or signed
type language
['James W. Reilly', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?e WHERE { resource:James_W._Reilly property:languages_spoken,_written_or_signed ?e . ?e rdf:type ontology:language }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P921
Q21114848 Q2342494
USER
How many magazine genres and collectables were primarily based on that language ?
(c(Q21114848),P921,Q1860) (c(Q2342494),P921,Q1860) (c(Q21114848),P921,Q1860) (c(Q2342494),P921,Q1860)
action count
action union
action filter_type
action find_reverse
entity Q1860
relation P921
type Q21114848
action filter_type
action find_reverse
entity Q1860
relation P921
type Q2342494
[{'concept': 'Q21114848'}, 'P921', 'Q1860'] [{'concept': 'Q2342494'}, 'P921', 'Q1860'] [{'concept': 'Q21114848'}, 'P921', 'Q1860'] [{'concept': 'Q2342494'}, 'P921', 'Q1860']
SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) WHERE { { ?r property:P921 resource:Q1860 . ?r rdf:type ontology:Q21114848 } UNION { ?r property:P921 resource:Q1860 . ?r rdf:type ontology:Q2342494 } }
action count
action union
action filter_type
action find_reverse
entity English
relation main subject
type magazine genre
action filter_type
action find_reverse
entity English
relation main subject
type collectable
[{'concept': 'magazine genre'}, 'main subject', 'English'] [{'concept': 'collectable'}, 'main subject', 'English'] [{'concept': 'magazine genre'}, 'main subject', 'English'] [{'concept': 'collectable'}, 'main subject', 'English']
SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) WHERE { { ?r property:main_subject resource:English . ?r rdf:type ontology:magazine_genre } UNION { ?r property:main_subject resource:English . ?r rdf:type ontology:collectable } }
[]
magazine genre collectable
SYSTEM
1 magazine genres and 1 collectables
Q7050706 Q1210346
(c(Q21114848),P921,Q1860) (c(Q2342494),P921,Q1860) (c(Q21114848),P921,Q1860) (c(Q2342494),P921,Q1860)
action count
action union
action filter_type
action find_reverse
entity Q1860
relation P921
type Q21114848
action filter_type
action find_reverse
entity Q1860
relation P921
type Q2342494
[ANSWER]
[{'concept': 'Q21114848'}, 'P921', 'Q1860'] [{'concept': 'Q2342494'}, 'P921', 'Q1860'] [{'concept': 'Q21114848'}, 'P921', 'Q1860'] [{'concept': 'Q2342494'}, 'P921', 'Q1860']
SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) WHERE { { ?r property:P921 resource:Q1860 . ?r rdf:type ontology:Q21114848 } UNION { ?r property:P921 resource:Q1860 . ?r rdf:type ontology:Q2342494 } }
Nordic Journal of English Studies A Dictionary of the English Language
1 magazine genres and 1 collectables
action count
action union
action filter_type
action find_reverse
entity English
relation main subject
type magazine genre
action filter_type
action find_reverse
entity English
relation main subject
type collectable
[{'concept': 'magazine genre'}, 'main subject', 'English'] [{'concept': 'collectable'}, 'main subject', 'English'] [{'concept': 'magazine genre'}, 'main subject', 'English'] [{'concept': 'collectable'}, 'main subject', 'English']
SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) WHERE { { ?r property:main_subject resource:English . ?r rdf:type ontology:magazine_genre } UNION { ?r property:main_subject resource:English . ?r rdf:type ontology:collectable } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P37
Q34770 Q13220204 Q15617994
USER
Which languages are considered to be the official language of max number of administrative country subdivisions or administrative territories ?
(c(Q13220204)|c(Q15617994),P37,c(Q34770))
action argmax
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q13220204
action find_reverse_tuple_counts
relation P37
type Q34770
type Q15617994
[[{'concept': 'Q13220204'}, {'concept': 'Q15617994'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) ?p WHERE { VALUES ( ?g ) { ( ontology:Q13220204 ) ( ontology:Q15617994 ) } . ?l rdf:type ?g } GROUP BY ?p } } . FILTER ( ?r = ?y ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) ?x WHERE { VALUES ( ?b ) { ( ontology:Q13220204 ) ( ontology:Q15617994 ) } . ?j rdf:type ?b } GROUP BY ?x } }
action argmax
action union
action find_reverse_tuple_counts
relation official language
type language
type second-level administrative country subdivision
action find_reverse_tuple_counts
relation official language
type language
type designation for an administrative territorial entity
[[{'concept': 'second-level administrative country subdivision'}, {'concept': 'designation for an administrative territorial entity'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) ?p WHERE { VALUES ( ?g ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?l rdf:type ?g } GROUP BY ?p } } . FILTER ( ?r = ?y ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) ?x WHERE { VALUES ( ?b ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?j rdf:type ?b } GROUP BY ?x } }
[]
language second-level administrative country subdivision designation for an administrative territorial entity
Q652
SYSTEM
Italian
Q652
(c(Q13220204)|c(Q15617994),P37,c(Q34770))
action argmax
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q13220204
action find_reverse_tuple_counts
relation P37
type Q34770
type Q15617994
[ANSWER] is considered to be the official language of max number of administrative country subdivisions or administrative territories
[[{'concept': 'Q13220204'}, {'concept': 'Q15617994'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) ?p WHERE { VALUES ( ?g ) { ( ontology:Q13220204 ) ( ontology:Q15617994 ) } . ?l rdf:type ?g } GROUP BY ?p } } . FILTER ( ?r = ?y ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) ?x WHERE { VALUES ( ?b ) { ( ontology:Q13220204 ) ( ontology:Q15617994 ) } . ?j rdf:type ?b } GROUP BY ?x } }
Italian
Italian is considered to be the official language of max number of administrative country subdivisions or administrative territories
Italian
action argmax
action union
action find_reverse_tuple_counts
relation official language
type language
type second-level administrative country subdivision
action find_reverse_tuple_counts
relation official language
type language
type designation for an administrative territorial entity
[[{'concept': 'second-level administrative country subdivision'}, {'concept': 'designation for an administrative territorial entity'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) ?p WHERE { VALUES ( ?g ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?l rdf:type ?g } GROUP BY ?p } } . FILTER ( ?r = ?y ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) ?x WHERE { VALUES ( ?b ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?j rdf:type ?b } GROUP BY ?x } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P282
Q9779 Q2001982 Q34770
USER
How many languages adopt greater number of alphabets or notations as the writing system than that language ?
(c(Q34770),P282,c(Q9779)|c(Q2001982))
action count
action greater
action union
action find_tuple_counts
relation P282
type Q34770
type Q9779
action find_tuple_counts
relation P282
type Q34770
type Q2001982
action count
action filter_multi_types
action find
entity Q652
relation P282
type Q9779
type Q2001982
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q9779'}, {'concept': 'Q2001982'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) ?p WHERE { VALUES ( ?k ) { ( ontology:Q9779 ) ( ontology:Q2001982 ) } . ?t rdf:type ?k } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) WHERE { { { ?g rdf:type ontology:Q9779 } UNION { ?g rdf:type ontology:Q2001982 } } . resource:Q652 property:P282 ?g } } . FILTER ( ?z > ?i ) }
action count
action greater
action union
action find_tuple_counts
relation writing system
type language
type alphabet
action find_tuple_counts
relation writing system
type language
type notation
action count
action filter_multi_types
action find
entity Italian
relation writing system
type alphabet
type notation
[{'concept': 'language'}, 'writing system', [{'concept': 'alphabet'}, {'concept': 'notation'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) ?p WHERE { VALUES ( ?k ) { ( ontology:alphabet ) ( ontology:notation ) } . ?t rdf:type ?k } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) WHERE { { { ?g rdf:type ontology:alphabet } UNION { ?g rdf:type ontology:notation } } . resource:Italian property:writing_system ?g } } . FILTER ( ?z > ?i ) }
[]
alphabet notation language
SYSTEM
15
Q182695 Q29572 Q35470 Q13211 Q35499 Q33251 Q21161942 Q1639124 Q2705672 Q36795 Q20972034 Q36790 Q36751 Q36464 Q652
(c(Q34770),P282,c(Q9779)|c(Q2001982))
action count
action greater
action union
action find_tuple_counts
relation P282
type Q34770
type Q9779
action find_tuple_counts
relation P282
type Q34770
type Q2001982
action count
action filter_multi_types
action find
entity Q652
relation P282
type Q9779
type Q2001982
[ANSWER]
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q9779'}, {'concept': 'Q2001982'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) ?p WHERE { VALUES ( ?k ) { ( ontology:Q9779 ) ( ontology:Q2001982 ) } . ?t rdf:type ?k } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) WHERE { { { ?g rdf:type ontology:Q9779 } UNION { ?g rdf:type ontology:Q2001982 } } . resource:Q652 property:P282 ?g } } . FILTER ( ?z > ?i ) }
Late Old Japanese Avestan Elamite language Ruthenian Old Church Slavonic Church Slavonic Serbian written in Cyrillic Slavoserbian Paeonian language Tartessian Classic Greek Sumerian Phrygian language Nivkh language Italian
15
action count
action greater
action union
action find_tuple_counts
relation writing system
type language
type alphabet
action find_tuple_counts
relation writing system
type language
type notation
action count
action filter_multi_types
action find
entity Italian
relation writing system
type alphabet
type notation
[{'concept': 'language'}, 'writing system', [{'concept': 'alphabet'}, {'concept': 'notation'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) ?p WHERE { VALUES ( ?k ) { ( ontology:alphabet ) ( ontology:notation ) } . ?t rdf:type ?k } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) WHERE { { { ?g rdf:type ontology:alphabet } UNION { ?g rdf:type ontology:notation } } . resource:Italian property:writing_system ?g } } . FILTER ( ?z > ?i ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6144890
P937
Q56061
USER
Which administrative territory is the work location of James W. Reilly ?
(Q6144890,P937,c(Q56061))
action filter_type
action find
entity Q6144890
relation P937
type Q56061
['Q6144890', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q56061 . resource:Q6144890 property:P937 ?z }
James W. Reilly
action filter_type
action find
entity James W. Reilly
relation work location
type administrative territorial entity
['James W. Reilly', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:administrative_territorial_entity . resource:James_W._Reilly property:work_location ?z }
[]
administrative territorial entity
Q16567
SYSTEM
Columbus
Q16567
(Q6144890,P937,c(Q56061))
action filter_type
action find
entity Q6144890
relation P937
type Q56061
[ANSWER] is the work location of James W. Reilly
['Q6144890', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q56061 . resource:Q6144890 property:P937 ?z }
Columbus
Columbus is the work location of James W. Reilly
Columbus
action filter_type
action find
entity James W. Reilly
relation work location
type administrative territorial entity
['James W. Reilly', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:administrative_territorial_entity . resource:James_W._Reilly property:work_location ?z }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1524873
Q56061
USER
And what about Heinrich Wehking?
(Q1524873,P937,c(Q56061))
action filter_type
action find
entity Q1524873
relation P937
type Q56061
['Q1524873', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q1524873 property:P937 ?t . ?t rdf:type ontology:Q56061 }
Heinrich Wehking
action filter_type
action find
entity Heinrich Wehking
relation work location
type administrative territorial entity
['Heinrich Wehking', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Heinrich_Wehking property:work_location ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1718 Q586
SYSTEM
Düsseldorf, Bonn
Q1718 Q586
(Q1524873,P937,c(Q56061))
action filter_type
action find
entity Q1524873
relation P937
type Q56061
[ANSWERS]
['Q1524873', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q1524873 property:P937 ?t . ?t rdf:type ontology:Q56061 }
Düsseldorf Bonn
Düsseldorf Bonn
action filter_type
action find
entity Heinrich Wehking
relation work location
type administrative territorial entity
['Heinrich Wehking', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Heinrich_Wehking property:work_location ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q1794136 Q586
P27 P1376
Q1048835
USER
Which political territories have Bonn as their capital and are Kurt Sterneck an inhabitant of ?
AND((Q586,P1376,c(Q1048835)), (Q1794136,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q586
relation P1376
action find
entity Q1794136
relation P27
type Q1048835
{'AND': [['Q586', 'P1376', {'concept': 'Q1048835'}], ['Q1794136', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?b WHERE { resource:Q586 property:P1376 ?b . resource:Q1794136 property:P27 ?b . ?b rdf:type ontology:Q1048835 }
Kurt Sterneck Bonn
action filter_type
action intersection
action find
entity Bonn
relation capital of
action find
entity Kurt Sterneck
relation country of citizenship
type political territorial entity
{'AND': [['Bonn', 'capital of', {'concept': 'political territorial entity'}], ['Kurt Sterneck', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?b WHERE { resource:Bonn property:capital_of ?b . resource:Kurt_Sterneck property:country_of_citizenship ?b . ?b rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
AND((Q586,P1376,c(Q1048835)), (Q1794136,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q586
relation P1376
action find
entity Q1794136
relation P27
type Q1048835
[ANSWER] have Bonn as their capital and are Kurt Sterneck an inhabitant of
{'AND': [['Q586', 'P1376', {'concept': 'Q1048835'}], ['Q1794136', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?b WHERE { resource:Q586 property:P1376 ?b . resource:Q1794136 property:P27 ?b . ?b rdf:type ontology:Q1048835 }
Germany
Germany have Bonn as their capital and are Kurt Sterneck an inhabitant of
Germany
action filter_type
action intersection
action find
entity Bonn
relation capital of
action find
entity Kurt Sterneck
relation country of citizenship
type political territorial entity
{'AND': [['Bonn', 'capital of', {'concept': 'political territorial entity'}], ['Kurt Sterneck', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?b WHERE { resource:Bonn property:capital_of ?b . resource:Kurt_Sterneck property:country_of_citizenship ?b . ?b rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q977
P530
Q15617994 Q1048835
USER
Which administrative territories holds diplomatic relationship with more number of political territories than Djibouti ?
(c(Q1048835),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q977
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) WHERE { resource:Q977 property:P530 ?n . ?n rdf:type ontology:Q15617994 } } . FILTER ( ?i > ?a ) . { SELECT DISTINCT ?h ( COUNT ( ?p ) AS ?i ) WHERE { ?h property:P530 ?p . ?h rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q1048835 } GROUP BY ?h } }
Djibouti
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Djibouti
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 ?h WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) WHERE { resource:Djibouti property:diplomatic_relation ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?i > ?a ) . { SELECT DISTINCT ?h ( COUNT ( ?p ) AS ?i ) WHERE { ?h property:diplomatic_relation ?p . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:political_territorial_entity } GROUP BY ?h } }
[]
designation for an administrative territorial entity political territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q711 Q252 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q881 Q811 Q33 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q851 Q733 Q734 Q233 Q20 Q1041 Q27 Q843 Q1029 Q1028 Q736 Q786 Q225 Q224 Q96 Q229 Q347 Q17 Q902 Q1036 Q1033 Q1030 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q215 Q218 Q219 Q916 Q833 Q1009 Q79 Q77 Q878 Q774 Q810 Q29 Q869 Q953
(c(Q1048835),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q977
relation P530
type Q15617994
[ANSWERS] hold diplomatic relationship with more number of political territories than Djibouti
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) WHERE { resource:Q977 property:P530 ?n . ?n rdf:type ontology:Q15617994 } } . FILTER ( ?i > ?a ) . { SELECT DISTINCT ?h ( COUNT ( ?p ) AS ?i ) WHERE { ?h property:P530 ?p . ?h rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q1048835 } GROUP BY ?h } }
Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Mongolia Indonesia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Nicaragua Finland Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Saudi Arabia Paraguay Guyana Malta Norway Senegal Ireland Pakistan Mozambique Morocco Ecuador Dominican Republic Bosnia and Herzegovina Croatia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Nigeria Namibia Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Slovenia Romania Bulgaria Angola Malaysia Cameroon Egypt Uruguay United Arab Emirates Guatemala Jordan Spain Thailand Zambia
Italy, Brazil and United States of America hold diplomatic relationship with more number of political territories than Djibouti
Italy Brazil United States of America
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Djibouti
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 ?h WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) WHERE { resource:Djibouti property:diplomatic_relation ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?i > ?a ) . { SELECT DISTINCT ?h ( COUNT ( ?p ) AS ?i ) WHERE { ?h property:diplomatic_relation ?p . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:political_territorial_entity } GROUP BY ?h } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q38 Q155 Q30
P463
Q484652
USER
Which organizations were Italy, Brazil and United States of America a member of ?
(Q38,P463,c(Q484652)) (Q155,P463,c(Q484652)) (Q30,P463,c(Q484652))
action union
action filter_type
action find
entity Q38
relation P463
type Q484652
action filter_type
action find
entity Q155
relation P463
type Q484652
action filter_type
action find
entity Q30
relation P463
type Q484652
['Q38', 'P463', {'concept': 'Q484652'}] ['Q155', 'P463', {'concept': 'Q484652'}] ['Q30', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ?d WHERE { { resource:Q38 property:P463 ?d . ?d rdf:type ontology:Q484652 } UNION { resource:Q155 property:P463 ?d . ?d rdf:type ontology:Q484652 } }
Italy Brazil United States of America
action union
action filter_type
action find
entity Italy
relation member of
type international organization
action filter_type
action find
entity Brazil
relation member of
type international organization
action filter_type
action find
entity United States of America
relation member of
type international organization
['Italy', 'member of', {'concept': 'international organization'}] ['Brazil', 'member of', {'concept': 'international organization'}] ['United States of America', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ?d WHERE { { resource:Italy property:member_of ?d . ?d rdf:type ontology:international_organization } UNION { resource:Brazil property:member_of ?d . ?d rdf:type ontology:international_organization } }
[]
international organization
Q81299 Q81299 Q19771
SYSTEM
Organization for Security and Co-operation in Europe for 1st, 2nd, G20 for 3rd
Q81299 Q1065 Q826700 Q605326 Q47488 Q7184 Q42262 Q1045198 Q472311 Q8475 Q1480793 Q188822 Q170424 Q201054 Q7804 Q842490 Q19771 Q54129 Q1411881 Q17495 Q192177 Q37143 Q176815 Q182000 Q233611 Q1043527 Q471690 Q1065 Q838116 Q47488 Q8475 Q19771 Q17495 Q4230 Q1043527 Q81299 Q1043527 Q1065 Q37143 Q188822 Q674182 Q842490 Q19771 Q7184
(Q38,P463,c(Q484652)) (Q155,P463,c(Q484652)) (Q30,P463,c(Q484652))
action union
action filter_type
action find
entity Q38
relation P463
type Q484652
action filter_type
action find
entity Q155
relation P463
type Q484652
action filter_type
action find
entity Q30
relation P463
type Q484652
[ANSWERS]
['Q38', 'P463', {'concept': 'Q484652'}] ['Q155', 'P463', {'concept': 'Q484652'}] ['Q30', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ?d WHERE { { resource:Q38 property:P463 ?d . ?d rdf:type ontology:Q484652 } UNION { resource:Q155 property:P463 ?d . ?d rdf:type ontology:Q484652 } }
Organization for Security and Co-operation in Europe United Nations International Energy Agency World Customs Organization International Criminal Court North Atlantic Treaty Organisation European Space Agency Permanent Court of Arbitration International Organization for Migration Interpol Nuclear Suppliers Group Asian Development Bank World Meteorological Organization International Maritime Organization International Monetary Fund Organisation for the Prohibition of Chemical Weapons G20 International Labour Organization Group of Ten Universal Postal Union Union for the Mediterranean G8 Inter-Parliamentary Union United Nations Conference on Trade and Development International Hydrographic Organization Multilateral Investment Guarantee Agency Andean Community of Nations United Nations G4 nations International Criminal Court Interpol G20 Universal Postal Union Union of South American Nations Multilateral Investment Guarantee Agency Organization for Security and Co-operation in Europe Multilateral Investment Guarantee Agency United Nations G8 Asian Development Bank Arctic Council Organisation for the Prohibition of Chemical Weapons G20 North Atlantic Treaty Organisation
Organization for Security and Co-operation in Europe, Organization for Security and Co-operation in Europe and G20 were Italy, Brazil and United States of America a member of
Organization for Security and Co-operation in Europe Organization for Security and Co-operation in Europe G20
action union
action filter_type
action find
entity Italy
relation member of
type international organization
action filter_type
action find
entity Brazil
relation member of
type international organization
action filter_type
action find
entity United States of America
relation member of
type international organization
['Italy', 'member of', {'concept': 'international organization'}] ['Brazil', 'member of', {'concept': 'international organization'}] ['United States of America', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ?d WHERE { { resource:Italy property:member_of ?d . ?d rdf:type ontology:international_organization } UNION { resource:Brazil property:member_of ?d . ?d rdf:type ontology:international_organization } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q19771
P361
Q1190554
USER
Which event is a part of G20 ?
(c(Q1190554),P361,Q19771)
action filter_type
action find_reverse
entity Q19771
relation P361
type Q1190554
[{'concept': 'Q1190554'}, 'P361', 'Q19771']
SELECT DISTINCT ?w WHERE { ?w property:P361 resource:Q19771 . ?w rdf:type ontology:Q1190554 }
G20
action filter_type
action find_reverse
entity G20
relation part of
type event
[{'concept': 'event'}, 'part of', 'G20']
SELECT DISTINCT ?w WHERE { ?w property:part_of resource:G20 . ?w rdf:type ontology:event }
[]
event
Q21552765
SYSTEM
G20 World Brain Mapping & Therapeutic Scientific Summit
Q21552765
(c(Q1190554),P361,Q19771)
action filter_type
action find_reverse
entity Q19771
relation P361
type Q1190554
[ANSWER] is a part of G20
[{'concept': 'Q1190554'}, 'P361', 'Q19771']
SELECT DISTINCT ?w WHERE { ?w property:P361 resource:Q19771 . ?w rdf:type ontology:Q1190554 }
G20 World Brain Mapping & Therapeutic Scientific Summit
G20 World Brain Mapping & Therapeutic Scientific Summit is a part of G20
G20 World Brain Mapping & Therapeutic Scientific Summit
action filter_type
action find_reverse
entity G20
relation part of
type event
[{'concept': 'event'}, 'part of', 'G20']
SELECT DISTINCT ?w WHERE { ?w property:part_of resource:G20 . ?w rdf:type ontology:event }
[]