Simple Question (Direct)
Simple Question
Q7611870
P106
Q12737077
USER
Which occupation has Steve Barnes as his/her 's career ?
(Q7611870,P106,c(Q12737077))
action filter_type
action find
entity Q7611870
relation P106
type Q12737077
['Q7611870', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q7611870 property:P106 ?g . ?g rdf:type ontology:Q12737077 }
Steve Barnes
action filter_type
action find
entity Steve Barnes
relation occupation
type occupation
['Steve Barnes', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Steve_Barnes property:occupation ?g . ?g rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q7611870,P106,c(Q12737077))
action filter_type
action find
entity Q7611870
relation P106
type Q12737077
Player [ANSWER] has Steve Barnes as his/her 's career
['Q7611870', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q7611870 property:P106 ?g . ?g rdf:type ontology:Q12737077 }
association football player
Player association football player has Steve Barnes as his/her 's career
association football player
action filter_type
action find
entity Steve Barnes
relation occupation
type occupation
['Steve Barnes', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Steve_Barnes property:occupation ?g . ?g rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7611870
P27
Q15617994
USER
Which administrative territory does that person belong to ?
(Q937857,P27,c(Q15617994))
action filter_type
action find
entity Q7611870
relation P27
type Q15617994
['Q937857', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q7611870 property:P27 ?e . ?e rdf:type ontology:Q15617994 }
Steve Barnes
action filter_type
action find
entity Steve Barnes
relation country of citizenship
type designation for an administrative territorial entity
['association football player', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Steve_Barnes property:country_of_citizenship ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q937857,P27,c(Q15617994))
action filter_type
action find
entity Q7611870
relation P27
type Q15617994
That person belongs to the [ANSWER]
['Q937857', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q7611870 property:P27 ?e . ?e rdf:type ontology:Q15617994 }
United Kingdom
That person belongs to the United Kingdom
United Kingdom
action filter_type
action find
entity Steve Barnes
relation country of citizenship
type designation for an administrative territorial entity
['association football player', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Steve_Barnes property:country_of_citizenship ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have ambassadorial relations with around 39 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 39
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?i ) WHERE { ?j rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q15617994 . ?j property:P530 ?e } GROUP BY ?j } . FILTER ( ?i = 39 ) }
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 39
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?i ) WHERE { ?j rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j property:diplomatic_relation ?e } GROUP BY ?j } . FILTER ( ?i = 39 ) }
[]
designation for an administrative territorial entity political territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 39
[ANSWERS] have ambassadorial relations with around 39 administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?i ) WHERE { ?j rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q15617994 . ?j property:P530 ?e } GROUP BY ?j } . FILTER ( ?i = 39 ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria have ambassadorial relations with around 39 administrative territories
Denmark Canada Austria
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 39
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?i ) WHERE { ?j rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j property:diplomatic_relation ?e } GROUP BY ?j } . FILTER ( ?i = 39 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q1048835
USER
Which political territories have ambassadorial relations with min number of political territories ?
(c(Q1048835),P530,c(Q1048835))
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?j ) AS ?g ) WHERE { ?i property:P530 ?j . ?i rdf:type ontology:Q1048835 . ?j rdf:type ontology:Q1048835 } GROUP BY ?i } . FILTER ( ?g = ?c ) . { SELECT DISTINCT ( MIN ( ?k ) AS ?c ) { SELECT DISTINCT ?f ( COUNT ( ?u ) AS ?k ) WHERE { ?f property:P530 ?u . ?f rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q1048835 } GROUP BY ?f } } }
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?j ) AS ?g ) WHERE { ?i property:diplomatic_relation ?j . ?i rdf:type ontology:political_territorial_entity . ?j rdf:type ontology:political_territorial_entity } GROUP BY ?i } . FILTER ( ?g = ?c ) . { SELECT DISTINCT ( MIN ( ?k ) AS ?c ) { SELECT DISTINCT ?f ( COUNT ( ?u ) AS ?k ) WHERE { ?f property:diplomatic_relation ?u . ?f rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:political_territorial_entity } GROUP BY ?f } } }
[]
political territorial entity political territorial entity
Q1000 Q769 Q691
SYSTEM
Gabon, Grenada, Papua New Guinea
Q1000 Q781 Q778 Q769 Q685 Q691 Q766
(c(Q1048835),P530,c(Q1048835))
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
[ANSWERS] have ambassadorial relations with min number of political territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?j ) AS ?g ) WHERE { ?i property:P530 ?j . ?i rdf:type ontology:Q1048835 . ?j rdf:type ontology:Q1048835 } GROUP BY ?i } . FILTER ( ?g = ?c ) . { SELECT DISTINCT ( MIN ( ?k ) AS ?c ) { SELECT DISTINCT ?f ( COUNT ( ?u ) AS ?k ) WHERE { ?f property:P530 ?u . ?f rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q1048835 } GROUP BY ?f } } }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea Jamaica
Gabon, Grenada and Papua New Guinea have ambassadorial relations with min number of political territories
Gabon Grenada Papua New Guinea
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?j ) AS ?g ) WHERE { ?i property:diplomatic_relation ?j . ?i rdf:type ontology:political_territorial_entity . ?j rdf:type ontology:political_territorial_entity } GROUP BY ?i } . FILTER ( ?g = ?c ) . { SELECT DISTINCT ( MIN ( ?k ) AS ?c ) { SELECT DISTINCT ?f ( COUNT ( ?u ) AS ?k ) WHERE { ?f property:diplomatic_relation ?u . ?f rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:political_territorial_entity } GROUP BY ?f } } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q13464 Q35
P47 P530
Q15617994
USER
Which administrative territories holds diplomatic relationship with Denmark or are bordered by Foggia ?
OR((Q35,P530,c(Q15617994)), (Q13464,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q35
relation P530
action find
entity Q13464
relation P47
type Q15617994
{'OR': [['Q35', 'P530', {'concept': 'Q15617994'}], ['Q13464', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q35 property:P530 ?j } UNION { resource:Q13464 property:P47 ?j } } . ?j rdf:type ontology:Q15617994 }
Foggia Denmark
action filter_type
action union
action find
entity Denmark
relation diplomatic relation
action find
entity Foggia
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Denmark', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Foggia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Denmark property:diplomatic_relation ?j } UNION { resource:Foggia property:shares_border_with ?j } } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q953 Q51892 Q51933 Q51899 Q51951 Q51952 Q51938 Q51965 Q51917 Q38
SYSTEM
Some of them are Zambia, Ascoli Satriano, Lucera, Carapelle, San Giovanni Rotondo, San Marco in Lamis, Ordona, Troia, Apulia, Castelluccio dei Sauri, Italy
Q51899 Q38 Q51965 Q155 Q51892 Q51947 Q19286 Q51917 Q953 Q51938 Q51951 Q51952 Q51933 Q19275
OR((Q35,P530,c(Q15617994)), (Q13464,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q35
relation P530
action find
entity Q13464
relation P47
type Q15617994
[ANSWERS] hold diplomatic relationship with Denmark or are bordered by Foggia
{'OR': [['Q35', 'P530', {'concept': 'Q15617994'}], ['Q13464', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q35 property:P530 ?j } UNION { resource:Q13464 property:P47 ?j } } . ?j rdf:type ontology:Q15617994 }
Carapelle Italy Troia, Apulia Brazil Ascoli Satriano Rignano Garganico Manfredonia Castelluccio dei Sauri Zambia Ordona San Giovanni Rotondo San Marco in Lamis Lucera San Severo
Zambia, Ascoli Satriano, Lucera, Carapelle, San Giovanni Rotondo, San Marco in Lamis, Ordona, Troia, Apulia, Castelluccio dei Sauri and Italy hold diplomatic relationship with Denmark or are bordered by Foggia
Zambia Ascoli Satriano Lucera Carapelle San Giovanni Rotondo San Marco in Lamis Ordona Troia, Apulia Castelluccio dei Sauri Italy
action filter_type
action union
action find
entity Denmark
relation diplomatic relation
action find
entity Foggia
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Denmark', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Foggia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Denmark property:diplomatic_relation ?j } UNION { resource:Foggia property:shares_border_with ?j } } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q2855820 Q691
P47 P27
Q15617994
USER
Which administrative territories have a shared border with Papua New Guinea or are Maria Verlackt-Gevaert a civilian of ?
OR((Q691,P47,c(Q15617994)), (Q2855820,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q691
relation P47
action find
entity Q2855820
relation P27
type Q15617994
{'OR': [['Q691', 'P47', {'concept': 'Q15617994'}], ['Q2855820', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q2855820 property:P27 ?k } UNION { resource:Q691 property:P47 ?k } } . ?k rdf:type ontology:Q15617994 }
Maria Verlackt-Gevaert Papua New Guinea
action filter_type
action union
action find
entity Papua New Guinea
relation shares border with
action find
entity Maria Verlackt-Gevaert
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Papua New Guinea', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Maria Verlackt-Gevaert', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Maria_Verlackt-Gevaert property:country_of_citizenship ?k } UNION { resource:Papua_New_Guinea property:shares_border_with ?k } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q31 Q252
SYSTEM
Belgium, Indonesia
Q31 Q252
OR((Q691,P47,c(Q15617994)), (Q2855820,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q691
relation P47
action find
entity Q2855820
relation P27
type Q15617994
[ANSWERS] have a shared border with Papua New Guinea or are Maria Verlackt-Gevaert a civilian of
{'OR': [['Q691', 'P47', {'concept': 'Q15617994'}], ['Q2855820', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q2855820 property:P27 ?k } UNION { resource:Q691 property:P47 ?k } } . ?k rdf:type ontology:Q15617994 }
Belgium Indonesia
Belgium and Indonesia have a shared border with Papua New Guinea or are Maria Verlackt-Gevaert a civilian of
Belgium Indonesia
action filter_type
action union
action find
entity Papua New Guinea
relation shares border with
action find
entity Maria Verlackt-Gevaert
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Papua New Guinea', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Maria Verlackt-Gevaert', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Maria_Verlackt-Gevaert property:country_of_citizenship ?k } UNION { resource:Papua_New_Guinea property:shares_border_with ?k } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q774
P530
Q15617994 Q15617994
USER
How many administrative territories have a diplomatic relationship with more number of administrative territories than Guatemala ?
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q774
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?z ) AS ?e ) WHERE { ?z property:P530 ?j . ?j rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q15617994 } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) WHERE { resource:Q774 property:P530 ?k . ?k rdf:type ontology:Q15617994 } } . FILTER ( ?e > ?x ) }
Guatemala
action count
action greater
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
entity Guatemala
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 ( ?j ) AS ?g ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?z ) AS ?e ) WHERE { ?z property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) WHERE { resource:Guatemala property:diplomatic_relation ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?e > ?x ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
102
Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q37 Q711 Q717 Q252 Q399 Q398 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q822 Q241 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q734 Q236 Q230 Q233 Q27 Q28 Q1049 Q189 Q843 Q184 Q1029 Q736 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q974 Q1033 Q1030 Q191 Q963 Q298 Q115 Q114 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q219 Q916 Q1009 Q1008 Q971 Q874 Q79 Q77 Q858 Q878 Q810 Q1016 Q1011 Q29 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q774
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?z ) AS ?e ) WHERE { ?z property:P530 ?j . ?j rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q15617994 } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) WHERE { resource:Q774 property:P530 ?k . ?k rdf:type ontology:Q15617994 } } . FILTER ( ?e > ?x ) }
Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Lithuania Mongolia Venezuela Indonesia Armenia Bahrain Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Lebanon Cuba Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Montenegro Georgia Malta Ireland Hungary Sudan Iceland Pakistan Belarus Mozambique Ecuador Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Democratic Republic of the Congo Nigeria Namibia Estonia Botswana Chile Ethiopia Kenya Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Bulgaria Angola Cameroon Côte d'Ivoire Republic of the Congo Turkmenistan Egypt Uruguay Syria United Arab Emirates Jordan Libya Cape Verde Spain Thailand Zambia
102
action count
action greater
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
entity Guatemala
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 ( ?j ) AS ?g ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?z ) AS ?e ) WHERE { ?z property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) WHERE { resource:Guatemala property:diplomatic_relation ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?e > ?x ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q35
P937
Q502895
USER
Which people have Denmark as work location ?
(c(Q502895),P937,Q35)
action filter_type
action find_reverse
entity Q35
relation P937
type Q502895
[{'concept': 'Q502895'}, 'P937', 'Q35']
SELECT DISTINCT ?j WHERE { ?j property:P937 resource:Q35 . ?j rdf:type ontology:Q502895 }
Denmark
action filter_type
action find_reverse
entity Denmark
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Denmark']
SELECT DISTINCT ?j WHERE { ?j property:work_location resource:Denmark . ?j rdf:type ontology:common_name }
[]
common name
Q165113 Q14551648 Q472749
SYSTEM
Grand Duchess Xenia Alexandrovna of Russia, Simon van de Passe, Claus Berg
Q1419156 Q472749 Q14551648 Q165113 Q91095
(c(Q502895),P937,Q35)
action filter_type
action find_reverse
entity Q35
relation P937
type Q502895
[ANSWERS] have Denmark as work location
[{'concept': 'Q502895'}, 'P937', 'Q35']
SELECT DISTINCT ?j WHERE { ?j property:P937 resource:Q35 . ?j rdf:type ontology:Q502895 }
Matthaeus Brandis Claus Berg Simon van de Passe Grand Duchess Xenia Alexandrovna of Russia Johannes von Euch
Grand Duchess Xenia Alexandrovna of Russia, Simon van de Passe and Claus Berg have Denmark as work location
Grand Duchess Xenia Alexandrovna of Russia Simon van de Passe Claus Berg
action filter_type
action find_reverse
entity Denmark
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Denmark']
SELECT DISTINCT ?j WHERE { ?j property:work_location resource:Denmark . ?j rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q35
P176
Q2235308
USER
What was manufactured by Denmark ?
(c(Q2235308),P176,Q35)
action filter_type
action find_reverse
entity Q35
relation P176
type Q2235308
[{'concept': 'Q2235308'}, 'P176', 'Q35']
SELECT DISTINCT ?r WHERE { ?r property:P176 resource:Q35 . ?r rdf:type ontology:Q2235308 }
Denmark
action filter_type
action find_reverse
entity Denmark
relation manufacturer
type ship type
[{'concept': 'ship type'}, 'manufacturer', 'Denmark']
SELECT DISTINCT ?r WHERE { ?r property:manufacturer resource:Denmark . ?r rdf:type ontology:ship_type }
[]
ship type
Q4699932
SYSTEM
Ajonpää class minesweeper
Q4699932
(c(Q2235308),P176,Q35)
action filter_type
action find_reverse
entity Q35
relation P176
type Q2235308
[ANSWER] was manufactured by Denmark
[{'concept': 'Q2235308'}, 'P176', 'Q35']
SELECT DISTINCT ?r WHERE { ?r property:P176 resource:Q35 . ?r rdf:type ontology:Q2235308 }
Ajonpää class minesweeper
Ajonpää class minesweeper was manufactured by Denmark
Ajonpää class minesweeper
action filter_type
action find_reverse
entity Denmark
relation manufacturer
type ship type
[{'concept': 'ship type'}, 'manufacturer', 'Denmark']
SELECT DISTINCT ?r WHERE { ?r property:manufacturer resource:Denmark . ?r rdf:type ontology:ship_type }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q35
P1313
Q12737077
USER
What is the occupation held by Denmark ?
(Q35,P1313,c(Q12737077))
action filter_type
action find
entity Q35
relation P1313
type Q12737077
['Q35', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q35 property:P1313 ?f . ?f rdf:type ontology:Q12737077 }
Denmark
action filter_type
action find
entity Denmark
relation office held by head of government
type occupation
['Denmark', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Denmark property:office_held_by_head_of_government ?f . ?f rdf:type ontology:occupation }
[]
occupation
Q795477
SYSTEM
Prime Minister of Denmark
Q795477
(Q35,P1313,c(Q12737077))
action filter_type
action find
entity Q35
relation P1313
type Q12737077
The occupation held by Denmark is the [ANSWER]
['Q35', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q35 property:P1313 ?f . ?f rdf:type ontology:Q12737077 }
Prime Minister of Denmark
The occupation held by Denmark is the Prime Minister of Denmark
Prime Minister of Denmark
action filter_type
action find
entity Denmark
relation office held by head of government
type occupation
['Denmark', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Denmark property:office_held_by_head_of_government ?f . ?f rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q35
P463
Q484652 Q56061
USER
How many international organizations or administrative territories were Denmark a member of ?
(Q35,P463,c(Q484652)) (Q35,P463,c(Q56061))
action count
action union
action filter_type
action find
entity Q35
relation P463
type Q484652
action filter_type
action find
entity Q35
relation P463
type Q56061
['Q35', 'P463', {'concept': 'Q484652'}] ['Q35', 'P463', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) WHERE { VALUES ( ?n ) { ( ontology:Q484652 ) ( ontology:Q56061 ) } . ?z rdf:type ?n }
Denmark
action count
action union
action filter_type
action find
entity Denmark
relation member of
type international organization
action filter_type
action find
entity Denmark
relation member of
type administrative territorial entity
['Denmark', 'member of', {'concept': 'international organization'}] ['Denmark', 'member of', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) WHERE { VALUES ( ?n ) { ( ontology:international_organization ) ( ontology:administrative_territorial_entity ) } . ?z rdf:type ?n }
[]
international organization administrative territorial entity
SYSTEM
10
Q81299 Q789769 Q458 Q1065 Q188822 Q146165 Q674182 Q7184 Q42262 Q1043527
(Q35,P463,c(Q484652)) (Q35,P463,c(Q56061))
action count
action union
action filter_type
action find
entity Q35
relation P463
type Q484652
action filter_type
action find
entity Q35
relation P463
type Q56061
[ANSWER]
['Q35', 'P463', {'concept': 'Q484652'}] ['Q35', 'P463', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) WHERE { VALUES ( ?n ) { ( ontology:Q484652 ) ( ontology:Q56061 ) } . ?z rdf:type ?n }
Organization for Security and Co-operation in Europe Council of the Baltic Sea States European Union United Nations Asian Development Bank Nordic Council Arctic Council North Atlantic Treaty Organisation European Space Agency Multilateral Investment Guarantee Agency
10
action count
action union
action filter_type
action find
entity Denmark
relation member of
type international organization
action filter_type
action find
entity Denmark
relation member of
type administrative territorial entity
['Denmark', 'member of', {'concept': 'international organization'}] ['Denmark', 'member of', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) WHERE { VALUES ( ?n ) { ( ontology:international_organization ) ( ontology:administrative_territorial_entity ) } . ?z rdf:type ?n }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q159 Q35
P27
Q502895
USER
Which people are a citizen of Denmark and Russia ?
AND((c(Q502895),P27,Q35), (c(Q502895),P27,Q159))
action filter_type
action intersection
action find_reverse
entity Q35
relation P27
action find_reverse
entity Q159
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q35'], [{'concept': 'Q502895'}, 'P27', 'Q159']]}
SELECT DISTINCT ?o WHERE { ?o property:P27 resource:Q159 . ?o property:P27 resource:Q35 . ?o rdf:type ontology:Q502895 }
Russia Denmark
action filter_type
action intersection
action find_reverse
entity Denmark
relation country of citizenship
action find_reverse
entity Russia
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Denmark'], [{'concept': 'common name'}, 'country of citizenship', 'Russia']]}
SELECT DISTINCT ?o WHERE { ?o property:country_of_citizenship resource:Russia . ?o property:country_of_citizenship resource:Denmark . ?o rdf:type ontology:common_name }
[]
common name
Q1743459
SYSTEM
Kirill Starkov
Q1743459
AND((c(Q502895),P27,Q35), (c(Q502895),P27,Q159))
action filter_type
action intersection
action find_reverse
entity Q35
relation P27
action find_reverse
entity Q159
relation P27
type Q502895
[ANSWER] is a citizen of Denmark and Russia
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q35'], [{'concept': 'Q502895'}, 'P27', 'Q159']]}
SELECT DISTINCT ?o WHERE { ?o property:P27 resource:Q159 . ?o property:P27 resource:Q35 . ?o rdf:type ontology:Q502895 }
Kirill Starkov
Kirill Starkov is a citizen of Denmark and Russia
Kirill Starkov
action filter_type
action intersection
action find_reverse
entity Denmark
relation country of citizenship
action find_reverse
entity Russia
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Denmark'], [{'concept': 'common name'}, 'country of citizenship', 'Russia']]}
SELECT DISTINCT ?o WHERE { ?o property:country_of_citizenship resource:Russia . ?o property:country_of_citizenship resource:Denmark . ?o rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q16738630 Q51892
P47 P17
Q15617994
USER
Which administrative territories are adjacent to Ascoli Satriano or are 2014 Israel Junior International Badminton Championships a part of ?
OR((Q51892,P47,c(Q15617994)), (Q16738630,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q51892
relation P47
action find
entity Q16738630
relation P17
type Q15617994
{'OR': [['Q51892', 'P47', {'concept': 'Q15617994'}], ['Q16738630', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q15617994 . { { resource:Q51892 property:P47 ?s } UNION { resource:Q16738630 property:P17 ?s } } }
2014 Israel Junior International Badminton Championships Ascoli Satriano
action filter_type
action union
action find
entity Ascoli Satriano
relation shares border with
action find
entity 2014 Israel Junior International Badminton Championships
relation country
type designation for an administrative territorial entity
{'OR': [['Ascoli Satriano', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['2014 Israel Junior International Badminton Championships', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Ascoli_Satriano property:shares_border_with ?s } UNION { resource:2014_Israel_Junior_International_Badminton_Championships property:country ?s } } }
[]
designation for an administrative territorial entity
Q801 Q52593 Q51963 Q51897 Q51917 Q51925 Q51938 Q30565 Q51940 Q19277
SYSTEM
Israel, Lavello, Stornarella, Candela, Castelluccio dei Sauri, Deliceto, Ordona, Melfi, Orta Nova, Cerignola
Q801 Q52593 Q51963 Q51897 Q51917 Q51925 Q51938 Q30565 Q51940 Q19277
OR((Q51892,P47,c(Q15617994)), (Q16738630,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q51892
relation P47
action find
entity Q16738630
relation P17
type Q15617994
[ANSWERS] are adjacent to Ascoli Satriano or are 2014 Israel Junior International Badminton Championships a part of
{'OR': [['Q51892', 'P47', {'concept': 'Q15617994'}], ['Q16738630', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q15617994 . { { resource:Q51892 property:P47 ?s } UNION { resource:Q16738630 property:P17 ?s } } }
Israel Lavello Stornarella Candela Castelluccio dei Sauri Deliceto Ordona Melfi Orta Nova Cerignola
Israel, Lavello, Stornarella, Candela, Castelluccio dei Sauri, Deliceto, Ordona, Melfi, Orta Nova and Cerignola are adjacent to Ascoli Satriano or are 2014 Israel Junior International Badminton Championships a part of
Israel Lavello Stornarella Candela Castelluccio dei Sauri Deliceto Ordona Melfi Orta Nova Cerignola
action filter_type
action union
action find
entity Ascoli Satriano
relation shares border with
action find
entity 2014 Israel Junior International Badminton Championships
relation country
type designation for an administrative territorial entity
{'OR': [['Ascoli Satriano', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['2014 Israel Junior International Badminton Championships', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Ascoli_Satriano property:shares_border_with ?s } UNION { resource:2014_Israel_Junior_International_Badminton_Championships property:country ?s } } }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q201658 Q15416
USER
How many administrative territories did greater number of film genres and television programs originate than that administrative territory ?
(c(Q201658)|c(Q15416),P495,c(Q15617994))
[[{'concept': 'Q201658'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?s ) { ( ?z ) ( ?x ) } . ?s property:P495 ?y } . ?z rdf:type ontology:Q201658 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15416 }
[[{'concept': 'film genre'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?s ) { ( ?z ) ( ?x ) } . ?s property:country_of_origin ?y } . ?z rdf:type ontology:film_genre . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:television_program }
[]
designation for an administrative territorial entity film genre television program
Comparative|Count over More/Less|Mult. entity type|Clarification
Q19277
SYSTEM
Did you mean Cerignola ?
(c(Q201658)|c(Q15416),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q201658'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?s ) { ( ?z ) ( ?x ) } . ?s property:P495 ?y } . ?z rdf:type ontology:Q201658 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15416 }
Did you mean Cerignola ?
Cerignola
[[{'concept': 'film genre'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?s ) { ( ?z ) ( ?x ) } . ?s property:country_of_origin ?y } . ?z rdf:type ontology:film_genre . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:television_program }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Israel. Could you tell me the answer for that?
(c(Q201658)|c(Q15416),P495,c(Q15617994))
Q801
[[{'concept': 'Q201658'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
[[{'concept': 'film genre'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
26
Q668 Q414 Q142 Q55 Q145 Q148 Q717 Q159 Q43 Q41 Q155 Q884 Q33 Q31 Q30 Q36 Q34 Q928 Q38 Q739 Q27 Q843 Q96 Q17 Q298 Q29
(c(Q201658)|c(Q15416),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q201658'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q201658 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15416 }
India Argentina France Netherlands United Kingdom People's Republic of China Venezuela Russia Turkey Greece Brazil South Korea Finland Belgium United States of America Poland Sweden Philippines Italy Colombia Ireland Pakistan Mexico Japan Chile Spain
26
[[{'concept': 'film genre'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:film_genre . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:television_program }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q801
P463
Q43229
USER
Which organizations were that administrative territory a member of ?
action filter_type
action find
entity Q801
relation P463
type Q43229
SELECT DISTINCT ?f WHERE { resource:Q801 property:P463 ?f . ?f rdf:type ontology:Q43229 }
Israel
action filter_type
action find
entity Israel
relation member of
type organization
SELECT DISTINCT ?f WHERE { resource:Israel property:member_of ?f . ?f rdf:type ontology:organization }
[]
organization
Q7825 Q41550 Q191384
SYSTEM
World Trade Organization, Organisation for Economic Co-operation and Development, International Bank for Reconstruction and Development
Q191384 Q899770 Q41550 Q656801 Q7825 Q827525
action filter_type
action find
entity Q801
relation P463
type Q43229
[ANSWERS] were that administrative territory a member of
SELECT DISTINCT ?f WHERE { resource:Q801 property:P463 ?f . ?f rdf:type ontology:Q43229 }
International Bank for Reconstruction and Development International Centre for Settlement of Investment Disputes Organisation for Economic Co-operation and Development International Finance Corporation World Trade Organization International Development Association
World Trade Organization, Organisation for Economic Co-operation and Development and International Bank for Reconstruction and Development were that administrative territory a member of
World Trade Organization Organisation for Economic Co-operation and Development International Bank for Reconstruction and Development
action filter_type
action find
entity Israel
relation member of
type organization
SELECT DISTINCT ?f WHERE { resource:Israel property:member_of ?f . ?f rdf:type ontology:organization }
[]