Simple Question (Direct)
Simple Question
Q91995
P21
Q290
USER
Which sex does Antal Hekler belong to ?
(Q91995,P21,c(Q290))
action filter_type
action find
entity Q91995
relation P21
type Q290
['Q91995', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q91995 property:P21 ?r . ?r rdf:type ontology:Q290 }
Antal Hekler
action filter_type
action find
entity Antal Hekler
relation gender
type sex
['Antal Hekler', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Antal_Hekler property:gender ?r . ?r rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q91995,P21,c(Q290))
action filter_type
action find
entity Q91995
relation P21
type Q290
Antal Hekler belongs to [ANSWER]
['Q91995', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q91995 property:P21 ?r . ?r rdf:type ontology:Q290 }
male
Antal Hekler belongs to male
male
action filter_type
action find
entity Antal Hekler
relation gender
type sex
['Antal Hekler', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Antal_Hekler property:gender ?r . ?r rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q91995
P27
Q15617994
USER
Which administrative territory is that person an inhabitant of ?
(Q6581097,P27,c(Q15617994))
action filter_type
action find
entity Q91995
relation P27
type Q15617994
['Q6581097', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q91995 property:P27 ?o . ?o rdf:type ontology:Q15617994 }
Antal Hekler
action filter_type
action find
entity Antal Hekler
relation country of citizenship
type designation for an administrative territorial entity
['male', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Antal_Hekler property:country_of_citizenship ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q28
SYSTEM
Hungary
Q28
(Q6581097,P27,c(Q15617994))
action filter_type
action find
entity Q91995
relation P27
type Q15617994
The [ANSWER] is that person an inhabitant of
['Q6581097', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q91995 property:P27 ?o . ?o rdf:type ontology:Q15617994 }
Hungary
The Hungary is that person an inhabitant of
Hungary
action filter_type
action find
entity Antal Hekler
relation country of citizenship
type designation for an administrative territorial entity
['male', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Antal_Hekler property:country_of_citizenship ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q28 Q643145 Q214
P47
Q15617994
USER
Is that administrative territory next to the border of Groß Luckow and Slovakia ?
(Q28,P47,Q643145) (Q28,P47,Q214)
action is_in
entity Q28
action intersection
action find_reverse
entity Q643145
relation P47
action find_reverse
entity Q214
relation P47
['Q28', 'P47', 'Q643145'] ['Q28', 'P47', 'Q214']
ASK WHERE { resource:Q28 property:P47 resource:Q214 . resource:Q28 property:P47 resource:Q643145 }
Hungary Groß Luckow Slovakia
action is_in
entity Hungary
action intersection
action find_reverse
entity Groß Luckow
relation shares border with
action find_reverse
entity Slovakia
relation shares border with
['Hungary', 'shares border with', 'Groß Luckow'] ['Hungary', 'shares border with', 'Slovakia']
ASK WHERE { resource:Hungary property:shares_border_with resource:Slovakia . resource:Hungary property:shares_border_with resource:Groß_Luckow }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q28,P47,Q643145) (Q28,P47,Q214)
action is_in
entity Q28
action intersection
action find_reverse
entity Q643145
relation P47
action find_reverse
entity Q214
relation P47
[ANSWER]
['Q28', 'P47', 'Q643145'] ['Q28', 'P47', 'Q214']
ASK WHERE { resource:Q28 property:P47 resource:Q214 . resource:Q28 property:P47 resource:Q643145 }
NO and YES respectively
action is_in
entity Hungary
action intersection
action find_reverse
entity Groß Luckow
relation shares border with
action find_reverse
entity Slovakia
relation shares border with
['Hungary', 'shares border with', 'Groß Luckow'] ['Hungary', 'shares border with', 'Slovakia']
ASK WHERE { resource:Hungary property:shares_border_with resource:Slovakia . resource:Hungary property:shares_border_with resource:Groß_Luckow }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q15090 Q91995
P47 P27
Q1048835
USER
Which political territories are the countries of citizenship of Antal Hekler or are adjacent to Lleida ?
OR((Q91995,P27,c(Q1048835)), (Q15090,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q91995
relation P27
action find
entity Q15090
relation P47
type Q1048835
{'OR': [['Q91995', 'P27', {'concept': 'Q1048835'}], ['Q15090', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q91995 property:P27 ?x } UNION { resource:Q15090 property:P47 ?x } } . ?x rdf:type ontology:Q1048835 }
Lleida Antal Hekler
action filter_type
action union
action find
entity Antal Hekler
relation country of citizenship
action find
entity Lleida
relation shares border with
type political territorial entity
{'OR': [['Antal Hekler', 'country of citizenship', {'concept': 'political territorial entity'}], ['Lleida', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Antal_Hekler property:country_of_citizenship ?x } UNION { resource:Lleida property:shares_border_with ?x } } . ?x rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1646558 Q522934 Q1626921 Q1772295 Q1902061 Q1765412 Q1772312 Q1772290 Q1766645 Q987375
SYSTEM
Some of them are Albatàrrec, Gimenells i el Pla de la Font, Almacelles, Alcoletge, Els Alamús, Torregrossa, Alfés, Alcarràs, Sudanell, Torrefarrera
Q1626921 Q1772290 Q1772312 Q1646595 Q1765412 Q1902061 Q522934 Q1902343 Q633385 Q183 Q1770847 Q1648857 Q577261 Q1901381 Q1766645 Q987375 Q1646558 Q1772295 Q1770861
OR((Q91995,P27,c(Q1048835)), (Q15090,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q91995
relation P27
action find
entity Q15090
relation P47
type Q1048835
[ANSWERS] are the countries of citizenship of Antal Hekler or are adjacent to Lleida
{'OR': [['Q91995', 'P27', {'concept': 'Q1048835'}], ['Q15090', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q91995 property:P27 ?x } UNION { resource:Q15090 property:P47 ?x } } . ?x rdf:type ontology:Q1048835 }
Almacelles Alcarràs Alfés Corbins Torregrossa Els Alamús Gimenells i el Pla de la Font Bell-lloc d'Urgell Tamarite de Litera Germany Alpicat Artesa de Lleida Torre-serona Montoliu de Lleida Sudanell Torrefarrera Albatàrrec Alcoletge Aspa
Albatàrrec, Gimenells i el Pla de la Font, Almacelles, Alcoletge, Els Alamús, Torregrossa, Alfés, Alcarràs, Sudanell and Torrefarrera are the countries of citizenship of Antal Hekler or are adjacent to Lleida
Albatàrrec Gimenells i el Pla de la Font Almacelles Alcoletge Els Alamús Torregrossa Alfés Alcarràs Sudanell Torrefarrera
action filter_type
action union
action find
entity Antal Hekler
relation country of citizenship
action find
entity Lleida
relation shares border with
type political territorial entity
{'OR': [['Antal Hekler', 'country of citizenship', {'concept': 'political territorial entity'}], ['Lleida', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Antal_Hekler property:country_of_citizenship ?x } UNION { resource:Lleida property:shares_border_with ?x } } . ?x rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P530
Q1048835 Q1048835 Q15617994
USER
Which political territories holds diplomatic relationship with min number of political territories or administrative territories ?
(c(Q1048835)|c(Q15617994),P530,c(Q1048835))
action argmin
action union
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q15617994
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MIN ( ?b ) AS ?f ) { SELECT DISTINCT ?y ( COUNT ( ?e ) AS ?b ) WHERE { { ?e property:P530 ?y . ?y rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q1048835 } UNION { ?e property:P530 ?y . ?y rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q15617994 } } GROUP BY ?y } } . { SELECT DISTINCT ?t ( COUNT ( ?a ) AS ?n ) WHERE { { ?a property:P530 ?t . ?t rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q1048835 } UNION { ?a property:P530 ?t . ?a rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q1048835 } } GROUP BY ?t } . FILTER ( ?n = ?f ) }
action argmin
action union
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MIN ( ?b ) AS ?f ) { SELECT DISTINCT ?y ( COUNT ( ?e ) AS ?b ) WHERE { { ?e property:diplomatic_relation ?y . ?y rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:political_territorial_entity } UNION { ?e property:diplomatic_relation ?y . ?y rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?y } } . { SELECT DISTINCT ?t ( COUNT ( ?a ) AS ?n ) WHERE { { ?a property:diplomatic_relation ?t . ?t rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:political_territorial_entity } UNION { ?a property:diplomatic_relation ?t . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:political_territorial_entity } } GROUP BY ?t } . FILTER ( ?n = ?f ) }
[]
political territorial entity political territorial entity designation for an administrative territorial entity
Q685 Q691
SYSTEM
Solomon Islands, Papua New Guinea
Q685 Q691
(c(Q1048835)|c(Q15617994),P530,c(Q1048835))
action argmin
action union
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWERS] hold diplomatic relationship with min number of political territories or administrative territories
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MIN ( ?b ) AS ?f ) { SELECT DISTINCT ?y ( COUNT ( ?e ) AS ?b ) WHERE { { ?e property:P530 ?y . ?y rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q1048835 } UNION { ?e property:P530 ?y . ?y rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q15617994 } } GROUP BY ?y } } . { SELECT DISTINCT ?t ( COUNT ( ?a ) AS ?n ) WHERE { { ?a property:P530 ?t . ?t rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q1048835 } UNION { ?a property:P530 ?t . ?a rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q1048835 } } GROUP BY ?t } . FILTER ( ?n = ?f ) }
Solomon Islands Papua New Guinea
Solomon Islands and Papua New Guinea hold diplomatic relationship with min number of political territories or administrative territories
Solomon Islands Papua New Guinea
action argmin
action union
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MIN ( ?b ) AS ?f ) { SELECT DISTINCT ?y ( COUNT ( ?e ) AS ?b ) WHERE { { ?e property:diplomatic_relation ?y . ?y rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:political_territorial_entity } UNION { ?e property:diplomatic_relation ?y . ?y rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?y } } . { SELECT DISTINCT ?t ( COUNT ( ?a ) AS ?n ) WHERE { { ?a property:diplomatic_relation ?t . ?t rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:political_territorial_entity } UNION { ?a property:diplomatic_relation ?t . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:political_territorial_entity } } GROUP BY ?t } . FILTER ( ?n = ?f ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q28 Q140359
P206
Q355304
USER
How many watercourses are situated close to Hungary and First Czechoslovak Republic ?
(Q28,P206,c(Q355304)) (Q140359,P206,c(Q355304))
action count
action intersection
action filter_type
action find
entity Q28
relation P206
type Q355304
action filter_type
action find
entity Q140359
relation P206
type Q355304
['Q28', 'P206', {'concept': 'Q355304'}] ['Q140359', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?v ) WHERE { resource:Q28 property:P206 ?r . ?r rdf:type ontology:Q355304 . ?r rdf:type ontology:Q355304 . resource:Q140359 property:P206 ?r }
Hungary First Czechoslovak Republic
action count
action intersection
action filter_type
action find
entity Hungary
relation located next to body of water
type watercourse
action filter_type
action find
entity First Czechoslovak Republic
relation located next to body of water
type watercourse
['Hungary', 'located next to body of water', {'concept': 'watercourse'}] ['First Czechoslovak Republic', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?v ) WHERE { resource:Hungary property:located_next_to_body_of_water ?r . ?r rdf:type ontology:watercourse . ?r rdf:type ontology:watercourse . resource:First_Czechoslovak_Republic property:located_next_to_body_of_water ?r }
[]
watercourse
SYSTEM
3
Q748872 Q1653 Q134350
(Q28,P206,c(Q355304)) (Q140359,P206,c(Q355304))
action count
action intersection
action filter_type
action find
entity Q28
relation P206
type Q355304
action filter_type
action find
entity Q140359
relation P206
type Q355304
[ANSWER]
['Q28', 'P206', {'concept': 'Q355304'}] ['Q140359', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?v ) WHERE { resource:Q28 property:P206 ?r . ?r rdf:type ontology:Q355304 . ?r rdf:type ontology:Q355304 . resource:Q140359 property:P206 ?r }
Ipoly Danube Tisza
3
action count
action intersection
action filter_type
action find
entity Hungary
relation located next to body of water
type watercourse
action filter_type
action find
entity First Czechoslovak Republic
relation located next to body of water
type watercourse
['Hungary', 'located next to body of water', {'concept': 'watercourse'}] ['First Czechoslovak Republic', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?v ) WHERE { resource:Hungary property:located_next_to_body_of_water ?r . ?r rdf:type ontology:watercourse . ?r rdf:type ontology:watercourse . resource:First_Czechoslovak_Republic property:located_next_to_body_of_water ?r }
[]