Simple Question (Direct)
Simple Question
Q120598
P21
Q290
USER
Which sex does Hans Mahler have ?
(Q120598,P21,c(Q290))
action filter_type
action find
entity Q120598
relation P21
type Q290
['Q120598', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q120598 property:P21 ?b . ?b rdf:type ontology:Q290 }
Hans Mahler
action filter_type
action find
entity Hans Mahler
relation gender
type sex
['Hans Mahler', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:Hans_Mahler property:gender ?b . ?b rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q120598,P21,c(Q290))
action filter_type
action find
entity Q120598
relation P21
type Q290
Hans Mahler has a [ANSWER]
['Q120598', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q120598 property:P21 ?b . ?b rdf:type ontology:Q290 }
male
Hans Mahler has a male
male
action filter_type
action find
entity Hans Mahler
relation gender
type sex
['Hans Mahler', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:Hans_Mahler property:gender ?b . ?b rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q120598
P20
Q486972
USER
Where did the expiration of that person occur ?
(Q6581097,P20,c(Q486972))
action filter_type
action find
entity Q120598
relation P20
type Q486972
['Q6581097', 'P20', {'concept': 'Q486972'}]
SELECT DISTINCT ?p WHERE { resource:Q120598 property:P20 ?p . ?p rdf:type ontology:Q486972 }
Hans Mahler
action filter_type
action find
entity Hans Mahler
relation place of death
type human settlement
['male', 'place of death', {'concept': 'human settlement'}]
SELECT DISTINCT ?p WHERE { resource:Hans_Mahler property:place_of_death ?p . ?p rdf:type ontology:human_settlement }
[]
human settlement
Q1055
SYSTEM
Hamburg
Q1055
(Q6581097,P20,c(Q486972))
action filter_type
action find
entity Q120598
relation P20
type Q486972
The expiration of that person occurred in [ANSWER]
['Q6581097', 'P20', {'concept': 'Q486972'}]
SELECT DISTINCT ?p WHERE { resource:Q120598 property:P20 ?p . ?p rdf:type ontology:Q486972 }
Hamburg
The expiration of that person occurred in Hamburg
Hamburg
action filter_type
action find
entity Hans Mahler
relation place of death
type human settlement
['male', 'place of death', {'concept': 'human settlement'}]
SELECT DISTINCT ?p WHERE { resource:Hans_Mahler property:place_of_death ?p . ?p rdf:type ontology:human_settlement }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1055
P1313
Q12737077
USER
Which occupation serves as the political office that is fulfilled by the head of the government of that human settlement ?
(Q1055,P1313,c(Q12737077))
action filter_type
action find
entity Q1055
relation P1313
type Q12737077
['Q1055', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q1055 property:P1313 ?b . ?b rdf:type ontology:Q12737077 }
Hamburg
action filter_type
action find
entity Hamburg
relation office held by head of government
type occupation
['Hamburg', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Hamburg property:office_held_by_head_of_government ?b . ?b rdf:type ontology:occupation }
[]
occupation
Q1362118
SYSTEM
First Mayor of Hamburg
Q1362118
(Q1055,P1313,c(Q12737077))
action filter_type
action find
entity Q1055
relation P1313
type Q12737077
[ANSWER] serves as the political office that is fulfilled by the head of the government of that human settlement
['Q1055', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q1055 property:P1313 ?b . ?b rdf:type ontology:Q12737077 }
First Mayor of Hamburg
First Mayor of Hamburg serves as the political office that is fulfilled by the head of the government of that human settlement
First Mayor of Hamburg
action filter_type
action find
entity Hamburg
relation office held by head of government
type occupation
['Hamburg', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Hamburg property:office_held_by_head_of_government ?b . ?b rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1635320
Q12737077
USER
And how about Navas de Bureba?
(Q1635320,P1313,c(Q12737077))
action filter_type
action find
entity Q1635320
relation P1313
type Q12737077
['Q1635320', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q1635320 property:P1313 ?n . ?n rdf:type ontology:Q12737077 }
Navas de Bureba
action filter_type
action find
entity Navas de Bureba
relation office held by head of government
type occupation
['Navas de Bureba', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Navas_de_Bureba property:office_held_by_head_of_government ?n . ?n rdf:type ontology:occupation }
[]
occupation
Q26693050
SYSTEM
mayor of Navas de Bureba
Q26693050
(Q1635320,P1313,c(Q12737077))
action filter_type
action find
entity Q1635320
relation P1313
type Q12737077
[ANSWER]
['Q1635320', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q1635320 property:P1313 ?n . ?n rdf:type ontology:Q12737077 }
mayor of Navas de Bureba
mayor of Navas de Bureba
action filter_type
action find
entity Navas de Bureba
relation office held by head of government
type occupation
['Navas de Bureba', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Navas_de_Bureba property:office_held_by_head_of_government ?n . ?n rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q29 Q26693050
P1313 P17
Q1048835
USER
Which political territories have mayor of Navas de Bureba as title of head of government and are situated in Spain ?
AND((c(Q1048835),P1313,Q26693050), (c(Q1048835),P17,Q29))
action filter_type
action intersection
action find_reverse
entity Q26693050
relation P1313
action find_reverse
entity Q29
relation P17
type Q1048835
{'AND': [[{'concept': 'Q1048835'}, 'P1313', 'Q26693050'], [{'concept': 'Q1048835'}, 'P17', 'Q29']]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q1048835 . ?h property:P1313 resource:Q26693050 . ?h property:P17 resource:Q29 }
Spain mayor of Navas de Bureba
action filter_type
action intersection
action find_reverse
entity mayor of Navas de Bureba
relation office held by head of government
action find_reverse
entity Spain
relation country
type political territorial entity
{'AND': [[{'concept': 'political territorial entity'}, 'office held by head of government', 'mayor of Navas de Bureba'], [{'concept': 'political territorial entity'}, 'country', 'Spain']]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:political_territorial_entity . ?h property:office_held_by_head_of_government resource:mayor_of_Navas_de_Bureba . ?h property:country resource:Spain }
[]
political territorial entity
Q1635320
SYSTEM
Navas de Bureba
Q1635320
AND((c(Q1048835),P1313,Q26693050), (c(Q1048835),P17,Q29))
action filter_type
action intersection
action find_reverse
entity Q26693050
relation P1313
action find_reverse
entity Q29
relation P17
type Q1048835
[ANSWER] have mayor of [ANSWER] as title of head of government and are situated in Spain
{'AND': [[{'concept': 'Q1048835'}, 'P1313', 'Q26693050'], [{'concept': 'Q1048835'}, 'P17', 'Q29']]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q1048835 . ?h property:P1313 resource:Q26693050 . ?h property:P17 resource:Q29 }
Navas de Bureba
Navas de Bureba have mayor of Navas de Bureba as title of head of government and are situated in Spain
Navas de Bureba
action filter_type
action intersection
action find_reverse
entity mayor of Navas de Bureba
relation office held by head of government
action find_reverse
entity Spain
relation country
type political territorial entity
{'AND': [[{'concept': 'political territorial entity'}, 'office held by head of government', 'mayor of Navas de Bureba'], [{'concept': 'political territorial entity'}, 'country', 'Spain']]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:political_territorial_entity . ?h property:office_held_by_head_of_government resource:mayor_of_Navas_de_Bureba . ?h property:country resource:Spain }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P17
Q15617994
USER
How many administrative territories do that political territory belong to ?
(Q1635320,P17,c(Q15617994))
action count
action filter_type
action find
entity Q1635320
relation P17
type Q15617994
['Q1635320', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) WHERE { resource:Q1635320 property:P17 ?o . ?o rdf:type ontology:Q15617994 }
action count
action filter_type
action find
entity Navas de Bureba
relation country
type designation for an administrative territorial entity
['Navas de Bureba', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) WHERE { resource:Navas_de_Bureba property:country ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q29
(Q1635320,P17,c(Q15617994))
action count
action filter_type
action find
entity Q1635320
relation P17
type Q15617994
[ANSWER]
['Q1635320', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) WHERE { resource:Q1635320 property:P17 ?o . ?o rdf:type ontology:Q15617994 }
Spain
1
action count
action filter_type
action find
entity Navas de Bureba
relation country
type designation for an administrative territorial entity
['Navas de Bureba', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) WHERE { resource:Navas_de_Bureba property:country ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q1055 Q1145487
P931
Q62447
USER
How many aerodromes are served by Hamburg or Samaná Province ?
(c(Q62447),P931,Q1055) (c(Q62447),P931,Q1145487)
action count
action union
action filter_type
action find_reverse
entity Q1055
relation P931
type Q62447
action filter_type
action find_reverse
entity Q1145487
relation P931
type Q62447
[{'concept': 'Q62447'}, 'P931', 'Q1055'] [{'concept': 'Q62447'}, 'P931', 'Q1145487']
SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { { ?w property:P931 resource:Q1055 . ?w rdf:type ontology:Q62447 } UNION { ?w property:P931 resource:Q1145487 . ?w rdf:type ontology:Q62447 } }
Hamburg Samaná Province
action count
action union
action filter_type
action find_reverse
entity Hamburg
relation place served by airport
type aerodrome
action filter_type
action find_reverse
entity Samaná Province
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'Hamburg'] [{'concept': 'aerodrome'}, 'place served by airport', 'Samaná Province']
SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { { ?w property:place_served_by_airport resource:Hamburg . ?w rdf:type ontology:aerodrome } UNION { ?w property:place_served_by_airport resource:Samaná_Province . ?w rdf:type ontology:aerodrome } }
[]
aerodrome
SYSTEM
2
Q2875827 Q673433
(c(Q62447),P931,Q1055) (c(Q62447),P931,Q1145487)
action count
action union
action filter_type
action find_reverse
entity Q1055
relation P931
type Q62447
action filter_type
action find_reverse
entity Q1145487
relation P931
type Q62447
[ANSWER]
[{'concept': 'Q62447'}, 'P931', 'Q1055'] [{'concept': 'Q62447'}, 'P931', 'Q1145487']
SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { { ?w property:P931 resource:Q1055 . ?w rdf:type ontology:Q62447 } UNION { ?w property:P931 resource:Q1145487 . ?w rdf:type ontology:Q62447 } }
El Portillo Airport Arroyo Barril Airport
2
action count
action union
action filter_type
action find_reverse
entity Hamburg
relation place served by airport
type aerodrome
action filter_type
action find_reverse
entity Samaná Province
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'Hamburg'] [{'concept': 'aerodrome'}, 'place served by airport', 'Samaná Province']
SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { { ?w property:place_served_by_airport resource:Hamburg . ?w rdf:type ontology:aerodrome } UNION { ?w property:place_served_by_airport resource:Samaná_Province . ?w rdf:type ontology:aerodrome } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q15617994
USER
Which administrative territories have ambassadorial relations with max number of political territories ?
(c(Q15617994),P530,c(Q1048835))
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?j ) { SELECT DISTINCT ?i ( COUNT ( ?g ) AS ?n ) WHERE { ?i property:P530 ?g . ?i rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q1048835 } GROUP BY ?i } } . { SELECT DISTINCT ?x ( COUNT ( ?c ) AS ?l ) WHERE { ?x property:P530 ?c . ?x rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q1048835 } GROUP BY ?x } . FILTER ( ?l = ?j ) }
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?j ) { SELECT DISTINCT ?i ( COUNT ( ?g ) AS ?n ) WHERE { ?i property:diplomatic_relation ?g . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:political_territorial_entity } GROUP BY ?i } } . { SELECT DISTINCT ?x ( COUNT ( ?c ) AS ?l ) WHERE { ?x property:diplomatic_relation ?c . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:political_territorial_entity } GROUP BY ?x } . FILTER ( ?l = ?j ) }
[]
political territorial entity designation for an administrative territorial entity
Q230
SYSTEM
Georgia
Q230
(c(Q15617994),P530,c(Q1048835))
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
[ANSWER] have ambassadorial relations with max number of political territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?j ) { SELECT DISTINCT ?i ( COUNT ( ?g ) AS ?n ) WHERE { ?i property:P530 ?g . ?i rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q1048835 } GROUP BY ?i } } . { SELECT DISTINCT ?x ( COUNT ( ?c ) AS ?l ) WHERE { ?x property:P530 ?c . ?x rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q1048835 } GROUP BY ?x } . FILTER ( ?l = ?j ) }
Georgia
Georgia have ambassadorial relations with max number of political territories
Georgia
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?j ) { SELECT DISTINCT ?i ( COUNT ( ?g ) AS ?n ) WHERE { ?i property:diplomatic_relation ?g . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:political_territorial_entity } GROUP BY ?i } } . { SELECT DISTINCT ?x ( COUNT ( ?c ) AS ?l ) WHERE { ?x property:diplomatic_relation ?c . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:political_territorial_entity } GROUP BY ?x } . FILTER ( ?l = ?j ) }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q230 Q6256037
P27
Q502895
USER
Is John Rut a civilian of that administrative territory ?
(Q6256037,P27,Q230)
action is_in
entity Q6256037
action find
entity Q230
relation P27
['Q6256037', 'P27', 'Q230']
ASK WHERE { resource:Q230 property:P27 resource:Q6256037 }
Georgia John Rut
action is_in
entity John Rut
action find
entity Georgia
relation country of citizenship
['John Rut', 'country of citizenship', 'Georgia']
ASK WHERE { resource:Georgia property:country_of_citizenship resource:John_Rut }
[]
common name
SYSTEM
NO
(Q6256037,P27,Q230)
action is_in
entity Q6256037
action find
entity Q230
relation P27
[ANSWER]
['Q6256037', 'P27', 'Q230']
ASK WHERE { resource:Q230 property:P27 resource:Q6256037 }
No
action is_in
entity John Rut
action find
entity Georgia
relation country of citizenship
['John Rut', 'country of citizenship', 'Georgia']
ASK WHERE { resource:Georgia property:country_of_citizenship resource:John_Rut }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q26693050 Q705742 Q29
P17
Q15617994
USER
Is mayor of Navas de Bureba present in Grafenrheinfeld and Spain ?
(Q26693050,P17,Q705742) (Q26693050,P17,Q29)
action is_in
entity Q26693050
action intersection
action find_reverse
entity Q705742
relation P17
action find_reverse
entity Q29
relation P17
['Q26693050', 'P17', 'Q705742'] ['Q26693050', 'P17', 'Q29']
ASK WHERE { resource:Q26693050 property:P17 resource:Q705742 . resource:Q26693050 property:P17 resource:Q29 }
mayor of Navas de Bureba Grafenrheinfeld Spain
action is_in
entity mayor of Navas de Bureba
action intersection
action find_reverse
entity Grafenrheinfeld
relation country
action find_reverse
entity Spain
relation country
['mayor of Navas de Bureba', 'country', 'Grafenrheinfeld'] ['mayor of Navas de Bureba', 'country', 'Spain']
ASK WHERE { resource:mayor_of_Navas_de_Bureba property:country resource:Grafenrheinfeld . resource:mayor_of_Navas_de_Bureba property:country resource:Spain }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q26693050,P17,Q705742) (Q26693050,P17,Q29)
action is_in
entity Q26693050
action intersection
action find_reverse
entity Q705742
relation P17
action find_reverse
entity Q29
relation P17
[ANSWER]
['Q26693050', 'P17', 'Q705742'] ['Q26693050', 'P17', 'Q29']
ASK WHERE { resource:Q26693050 property:P17 resource:Q705742 . resource:Q26693050 property:P17 resource:Q29 }
NO and YES respectively
action is_in
entity mayor of Navas de Bureba
action intersection
action find_reverse
entity Grafenrheinfeld
relation country
action find_reverse
entity Spain
relation country
['mayor of Navas de Bureba', 'country', 'Grafenrheinfeld'] ['mayor of Navas de Bureba', 'country', 'Spain']
ASK WHERE { resource:mayor_of_Navas_de_Bureba property:country resource:Grafenrheinfeld . resource:mayor_of_Navas_de_Bureba property:country resource:Spain }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q120598 Q183
P27
Q1048835
USER
Is Germany the native country of Hans Mahler ?
(Q120598,P27,Q183)
action is_in
entity Q183
action find
entity Q120598
relation P27
['Q120598', 'P27', 'Q183']
ASK WHERE { resource:Q120598 property:P27 resource:Q183 }
Hans Mahler Germany
action is_in
entity Germany
action find
entity Hans Mahler
relation country of citizenship
['Hans Mahler', 'country of citizenship', 'Germany']
ASK WHERE { resource:Hans_Mahler property:country_of_citizenship resource:Germany }
[]
political territorial entity
SYSTEM
YES
(Q120598,P27,Q183)
action is_in
entity Q183
action find
entity Q120598
relation P27
[ANSWER]
['Q120598', 'P27', 'Q183']
ASK WHERE { resource:Q120598 property:P27 resource:Q183 }
Yes
action is_in
entity Germany
action find
entity Hans Mahler
relation country of citizenship
['Hans Mahler', 'country of citizenship', 'Germany']
ASK WHERE { resource:Hans_Mahler property:country_of_citizenship resource:Germany }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relations with min number of administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?j ) AS ?t ) { SELECT DISTINCT ?g ( COUNT ( ?l ) AS ?j ) WHERE { ?l rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q15617994 . ?g property:P530 ?l } GROUP BY ?g } } . { SELECT DISTINCT ?z ( COUNT ( ?f ) AS ?r ) WHERE { ?z property:P530 ?f . ?z rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q15617994 } GROUP BY ?z } . FILTER ( ?r = ?t ) }
action argmin
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 ?z WHERE { { SELECT DISTINCT ( MIN ( ?j ) AS ?t ) { SELECT DISTINCT ?g ( COUNT ( ?l ) AS ?j ) WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g property:diplomatic_relation ?l } GROUP BY ?g } } . { SELECT DISTINCT ?z ( COUNT ( ?f ) AS ?r ) WHERE { ?z property:diplomatic_relation ?f . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?z } . FILTER ( ?r = ?t ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q29999 Q786 Q924
SYSTEM
Kingdom of the Netherlands, Dominican Republic, Tanzania
Q702 Q804 Q262 Q265 Q712 Q837 Q657 Q792 Q986 Q242 Q811 Q924 Q29999 Q854 Q819 Q424 Q730 Q232 Q921 Q1027 Q1020 Q1028 Q786 Q1036 Q1037 Q974 Q1032 Q1030 Q965 Q967 Q963 Q697 Q695 Q115 Q117 Q754 Q912 Q1007 Q1006 Q1005 Q1009 Q1008 Q971 Q683 Q686 Q836 Q774 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[ANSWERS] have diplomatic relations with min number of administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?j ) AS ?t ) { SELECT DISTINCT ?g ( COUNT ( ?l ) AS ?j ) WHERE { ?l rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q15617994 . ?g property:P530 ?l } GROUP BY ?g } } . { SELECT DISTINCT ?z ( COUNT ( ?f ) AS ?r ) WHERE { ?z property:P530 ?f . ?z rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q15617994 } GROUP BY ?z } . FILTER ( ?r = ?t ) }
Federated States of Micronesia Panama Algeria Uzbekistan Fiji Nepal Chad El Salvador Eritrea Belize Nicaragua Tanzania Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Kazakhstan Brunei Mauritius Malawi Morocco Dominican Republic Uganda Rwanda Democratic Republic of the Congo Niger Namibia Burkina Faso Burundi Botswana Nauru Palau Ethiopia Ghana Trinidad and Tobago Mali Guinea-Bissau Guinea Gambia Cameroon Côte d'Ivoire Republic of the Congo Samoa Vanuatu Myanmar Guatemala Kuwait Madagascar Togo Tonga New Caledonia
Kingdom of the Netherlands, Dominican Republic and Tanzania have diplomatic relations with min number of administrative territories
Kingdom of the Netherlands Dominican Republic Tanzania
action argmin
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 ?z WHERE { { SELECT DISTINCT ( MIN ( ?j ) AS ?t ) { SELECT DISTINCT ?g ( COUNT ( ?l ) AS ?j ) WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g property:diplomatic_relation ?l } GROUP BY ?g } } . { SELECT DISTINCT ?z ( COUNT ( ?f ) AS ?r ) WHERE { ?z property:diplomatic_relation ?f . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?z } . FILTER ( ?r = ?t ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q29999 Q786 Q924
P17
Q271669
USER
Which landforms are present in Kingdom of the Netherlands, Dominican Republic and Tanzania ?
(c(Q271669),P17,Q29999) (c(Q271669),P17,Q786) (c(Q271669),P17,Q924)
action union
action filter_type
action find_reverse
entity Q29999
relation P17
type Q271669
action filter_type
action find_reverse
entity Q786
relation P17
type Q271669
action filter_type
action find_reverse
entity Q924
relation P17
type Q271669
[{'concept': 'Q271669'}, 'P17', 'Q29999'] [{'concept': 'Q271669'}, 'P17', 'Q786'] [{'concept': 'Q271669'}, 'P17', 'Q924']
SELECT DISTINCT ?j WHERE { { ?j property:P17 resource:Q29999 . ?j rdf:type ontology:Q271669 } UNION { ?j rdf:type ontology:Q271669 . ?j property:P17 resource:Q786 } }
Kingdom of the Netherlands Dominican Republic Tanzania
action union
action filter_type
action find_reverse
entity Kingdom of the Netherlands
relation country
type landform
action filter_type
action find_reverse
entity Dominican Republic
relation country
type landform
action filter_type
action find_reverse
entity Tanzania
relation country
type landform
[{'concept': 'landform'}, 'country', 'Kingdom of the Netherlands'] [{'concept': 'landform'}, 'country', 'Dominican Republic'] [{'concept': 'landform'}, 'country', 'Tanzania']
SELECT DISTINCT ?j WHERE { { ?j property:country resource:Kingdom_of_the_Netherlands . ?j rdf:type ontology:landform } UNION { ?j rdf:type ontology:landform . ?j property:country resource:Dominican_Republic } }
[]
landform
Q25596 Q25277 Q1741475
SYSTEM
Saint Martin, Hispaniola, Kilwa Kisiwani
Q25596 Q1339113 Q477915 Q34765 Q7408769 Q1674017 Q25277 Q2445588 Q7332301 Q15734082 Q20727403 Q1062156 Q612449 Q208664 Q961864 Q1474185 Q3637051 Q1741475 Q24061 Q1914720 Q7022658 Q373323 Q1776191 Q259584 Q713391 Q1474275 Q404433 Q5264980 Q3853328 Q2300159 Q1517018
(c(Q271669),P17,Q29999) (c(Q271669),P17,Q786) (c(Q271669),P17,Q924)
action union
action filter_type
action find_reverse
entity Q29999
relation P17
type Q271669
action filter_type
action find_reverse
entity Q786
relation P17
type Q271669
action filter_type
action find_reverse
entity Q924
relation P17
type Q271669
[ANSWERS] are present in Kingdom of the Netherlands, Dominican Republic and Tanzania
[{'concept': 'Q271669'}, 'P17', 'Q29999'] [{'concept': 'Q271669'}, 'P17', 'Q786'] [{'concept': 'Q271669'}, 'P17', 'Q924']
SELECT DISTINCT ?j WHERE { { ?j property:P17 resource:Q29999 . ?j rdf:type ontology:Q271669 } UNION { ?j rdf:type ontology:Q271669 . ?j property:P17 resource:Q786 } }
Saint Martin Saona Island Catalina Island, Dominican Republic Beata Island Samaná Peninsula Alto Velo Island Hispaniola Toten Island Unguja Songo Songo Island Uhuru Peak Changuu Bongoyo Island Pemba Island Nabuyongo Island Fundo Island Bawe Island Kilwa Kisiwani Mnemba Island Maziwi Island Ngualla Ukerewe Island Njao Island Uzi Island Mafia Island Fungu Yasini Island Chumbe Island Pangavini Island Mbudya Island Tumbatu Ukara Island
Saint Martin, Hispaniola and Kilwa Kisiwani are present in Kingdom of the Netherlands, Dominican Republic and Tanzania
Saint Martin Hispaniola Kilwa Kisiwani
action union
action filter_type
action find_reverse
entity Kingdom of the Netherlands
relation country
type landform
action filter_type
action find_reverse
entity Dominican Republic
relation country
type landform
action filter_type
action find_reverse
entity Tanzania
relation country
type landform
[{'concept': 'landform'}, 'country', 'Kingdom of the Netherlands'] [{'concept': 'landform'}, 'country', 'Dominican Republic'] [{'concept': 'landform'}, 'country', 'Tanzania']
SELECT DISTINCT ?j WHERE { { ?j property:country resource:Kingdom_of_the_Netherlands . ?j rdf:type ontology:landform } UNION { ?j rdf:type ontology:landform . ?j property:country resource:Dominican_Republic } }
[]