Simple Question (Direct)
Simple Question
Q68148
P21
Q290
USER
What is the sex of Albert Wigand ?
(Q68148,P21,c(Q290))
action filter_type
action find
entity Q68148
relation P21
type Q290
['Q68148', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { resource:Q68148 property:P21 ?p . ?p rdf:type ontology:Q290 }
Albert Wigand
action filter_type
action find
entity Albert Wigand
relation gender
type sex
['Albert Wigand', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { resource:Albert_Wigand property:gender ?p . ?p rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q68148,P21,c(Q290))
action filter_type
action find
entity Q68148
relation P21
type Q290
The sex of Albert Wigand is the [ANSWER]
['Q68148', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { resource:Q68148 property:P21 ?p . ?p rdf:type ontology:Q290 }
male
The sex of Albert Wigand is the male
male
action filter_type
action find
entity Albert Wigand
relation gender
type sex
['Albert Wigand', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { resource:Albert_Wigand property:gender ?p . ?p rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q68148
P19
Q486972
USER
Which human settlement was Albert Wigand born at ?
(Q68148,P19,c(Q486972))
action filter_type
action find
entity Q68148
relation P19
type Q486972
['Q68148', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ?v WHERE { resource:Q68148 property:P19 ?v . ?v rdf:type ontology:Q486972 }
Albert Wigand
action filter_type
action find
entity Albert Wigand
relation place of birth
type human settlement
['Albert Wigand', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ?v WHERE { resource:Albert_Wigand property:place_of_birth ?v . ?v rdf:type ontology:human_settlement }
[]
human settlement
Q2452168
SYSTEM
Treysa
Q2452168
(Q68148,P19,c(Q486972))
action filter_type
action find
entity Q68148
relation P19
type Q486972
Albert Wigand was born in [ANSWER]
['Q68148', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ?v WHERE { resource:Q68148 property:P19 ?v . ?v rdf:type ontology:Q486972 }
Treysa
Albert Wigand was born in Treysa
Treysa
action filter_type
action find
entity Albert Wigand
relation place of birth
type human settlement
['Albert Wigand', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ?v WHERE { resource:Albert_Wigand property:place_of_birth ?v . ?v rdf:type ontology:human_settlement }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1406726 Q68148
P27
Q1048835
USER
Which political territories are Albert Wigand or Fernando Lorenzen a civilian of ?
OR((Q68148,P27,c(Q1048835)), (Q1406726,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q68148
relation P27
action find
entity Q1406726
relation P27
type Q1048835
{'OR': [['Q68148', 'P27', {'concept': 'Q1048835'}], ['Q1406726', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q68148 property:P27 ?u } UNION { resource:Q1406726 property:P27 ?u } } . ?u rdf:type ontology:Q1048835 }
Fernando Lorenzen Albert Wigand
action filter_type
action union
action find
entity Albert Wigand
relation country of citizenship
action find
entity Fernando Lorenzen
relation country of citizenship
type political territorial entity
{'OR': [['Albert Wigand', 'country of citizenship', {'concept': 'political territorial entity'}], ['Fernando Lorenzen', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Albert_Wigand property:country_of_citizenship ?u } UNION { resource:Fernando_Lorenzen property:country_of_citizenship ?u } } . ?u rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
OR((Q68148,P27,c(Q1048835)), (Q1406726,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q68148
relation P27
action find
entity Q1406726
relation P27
type Q1048835
[ANSWER] is Albert Wigand or Fernando Lorenzen a civilian of
{'OR': [['Q68148', 'P27', {'concept': 'Q1048835'}], ['Q1406726', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q68148 property:P27 ?u } UNION { resource:Q1406726 property:P27 ?u } } . ?u rdf:type ontology:Q1048835 }
Germany
Germany is Albert Wigand or Fernando Lorenzen a civilian of
Germany
action filter_type
action union
action find
entity Albert Wigand
relation country of citizenship
action find
entity Fernando Lorenzen
relation country of citizenship
type political territorial entity
{'OR': [['Albert Wigand', 'country of citizenship', {'concept': 'political territorial entity'}], ['Fernando Lorenzen', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Albert_Wigand property:country_of_citizenship ?u } UNION { resource:Fernando_Lorenzen property:country_of_citizenship ?u } } . ?u rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1406726
P20
Q15617994
USER
Where did the demise of Fernando Lorenzen occur ?
(Q183,P20,c(Q15617994))
action filter_type
action find
entity Q1406726
relation P20
type Q15617994
['Q183', 'P20', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q1406726 property:P20 ?o . ?o rdf:type ontology:Q15617994 }
Fernando Lorenzen
action filter_type
action find
entity Fernando Lorenzen
relation place of death
type designation for an administrative territorial entity
['Germany', 'place of death', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Fernando_Lorenzen property:place_of_death ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q1630
SYSTEM
Altona
Q1630
(Q183,P20,c(Q15617994))
action filter_type
action find
entity Q1406726
relation P20
type Q15617994
The demise of Fernando Lorenzen occurred in [ANSWER]
['Q183', 'P20', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q1406726 property:P20 ?o . ?o rdf:type ontology:Q15617994 }
Altona
The demise of Fernando Lorenzen occurred in Altona
Altona
action filter_type
action find
entity Fernando Lorenzen
relation place of death
type designation for an administrative territorial entity
['Germany', 'place of death', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Fernando_Lorenzen property:place_of_death ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q769
P530
Q1048835 Q15617994
USER
How many political territories have diplomatic relationships with more number of administrative territories than Grenada ?
(c(Q15617994),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q769
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?m ) WHERE { resource:Q769 property:P530 ?n . ?n rdf:type ontology:Q15617994 } } . FILTER ( ?f > ?m ) . { SELECT DISTINCT ?q ( COUNT ( ?e ) AS ?f ) WHERE { ?q property:P530 ?e . ?q rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q15617994 } GROUP BY ?q } }
Grenada
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Grenada
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?m ) WHERE { resource:Grenada property:diplomatic_relation ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?f > ?m ) . { SELECT DISTINCT ?q ( COUNT ( ?e ) AS ?f ) WHERE { ?q property:diplomatic_relation ?e . ?q rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
7
Q40 Q183 Q408 Q35 Q16 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q769
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?m ) WHERE { resource:Q769 property:P530 ?n . ?n rdf:type ontology:Q15617994 } } . FILTER ( ?f > ?m ) . { SELECT DISTINCT ?q ( COUNT ( ?e ) AS ?f ) WHERE { ?q property:P530 ?e . ?q rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q15617994 } GROUP BY ?q } }
Austria Germany Australia Denmark Canada New Zealand Jamaica
7
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Grenada
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?m ) WHERE { resource:Grenada property:diplomatic_relation ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?f > ?m ) . { SELECT DISTINCT ?q ( COUNT ( ?e ) AS ?f ) WHERE { ?q property:diplomatic_relation ?e . ?q rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P206
Q337567 Q15324 Q1048835
USER
How many political territories are located in the neighbourhood of exactly 1 still waterss and bodies of water ?
(c(Q1048835),P206,c(Q337567)|c(Q15324))
action count
action equal
action union
action find_tuple_counts
relation P206
type Q1048835
type Q337567
action find_tuple_counts
relation P206
type Q1048835
type Q15324
value 1
[{'concept': 'Q1048835'}, 'P206', [{'concept': 'Q337567'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?d ) AS ?f ) WHERE { { ?w property:P206 ?d . ?w rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q337567 } UNION { ?w property:P206 ?d . ?w rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q15324 } } GROUP BY ?w } . FILTER ( ?f = 1 ) }
action count
action equal
action union
action find_tuple_counts
relation located next to body of water
type political territorial entity
type still waters
action find_tuple_counts
relation located next to body of water
type political territorial entity
type body of water
value 1
[{'concept': 'political territorial entity'}, 'located next to body of water', [{'concept': 'still waters'}, {'concept': 'body of water'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?d ) AS ?f ) WHERE { { ?w property:located_next_to_body_of_water ?d . ?w rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:still_waters } UNION { ?w property:located_next_to_body_of_water ?d . ?w rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:body_of_water } } GROUP BY ?w } . FILTER ( ?f = 1 ) }
[]
still waters body of water political territorial entity
SYSTEM
79
Q1649616 Q1228773 Q657407 Q1866 Q844784 Q2012050 Q1614800 Q492312 Q7206212 Q5065 Q5067 Q5068 Q18356359 Q147774 Q217829 Q7451347 Q40 Q5095 Q18350152 Q3557 Q804466 Q5096 Q492420 Q35 Q5017377 Q917886 Q6674900 Q7521776 Q616847 Q1637424 Q1443906 Q13751 Q847329 Q817971 Q16851746 Q1634820 Q1447802 Q217840 Q7130989 Q100166 Q163271 Q5437809 Q1823 Q3540 Q1443992 Q1631163 Q5078 Q1637406 Q743849 Q650682 Q748078 Q4481 Q1645555 Q5939706 Q3903 Q4673688 Q3724 Q1391437 Q18359182 Q171334 Q847127 Q5616614 Q47134 Q1623000 Q18357018 Q505610 Q607474 Q3891 Q168159 Q18351821 Q3586 Q936264 Q7684726 Q5197069 Q3906 Q824076 Q597201 Q6298722 Q697126
(c(Q1048835),P206,c(Q337567)|c(Q15324))
action count
action equal
action union
action find_tuple_counts
relation P206
type Q1048835
type Q337567
action find_tuple_counts
relation P206
type Q1048835
type Q15324
value 1
[ANSWER]
[{'concept': 'Q1048835'}, 'P206', [{'concept': 'Q337567'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?d ) AS ?f ) WHERE { { ?w property:P206 ?d . ?w rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q337567 } UNION { ?w property:P206 ?d . ?w rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q15324 } } GROUP BY ?w } . FILTER ( ?f = 1 ) }
Orio Plentzia Sopela Bangka–Belitung Islands Vale of Glamorgan Donetsk Oblast Val de San Vicente Hondarribia Poblacion Central Sulawesi Province Gorontalo Province North Sulawesi Province Manipulon Zarautz Ceredigion Sentinela Austria Papua Loguingot Central Java Province Bakio West Papua Getxo Denmark Cagting Santurtzi Looc, Mandaue Sinandigan Ribamontán al Mar Miengo Arnuero Biliran Comillas Conwy County Borough Caparangasan Barreiros Noja Carmarthenshire Pangpang Orkney Islands Kherson Oblast Fatima Aceh Banten Province Bareyo Aia South Sulawesi Ruiloba Valdáliga Denbighshire Neath Port Talbot County Borough Barrika Liendo Humayhumay North Kalimantan Achila West Java Province Alfoz de Lloredo Botlog Island Zaporizhzhya Oblast Pasaia Guintabo-an Shetland Piélagos Bayas Island Flintshire Muskiz Kalimantan Tengah Anglesey Malangabang East Java Lemoiz Tapon Cuya Kalimantan Selatan Ribadeo Lake of the Woods, Ontario Juagdan Bridgend County Borough
79
action count
action equal
action union
action find_tuple_counts
relation located next to body of water
type political territorial entity
type still waters
action find_tuple_counts
relation located next to body of water
type political territorial entity
type body of water
value 1
[{'concept': 'political territorial entity'}, 'located next to body of water', [{'concept': 'still waters'}, {'concept': 'body of water'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?d ) AS ?f ) WHERE { { ?w property:located_next_to_body_of_water ?d . ?w rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:still_waters } UNION { ?w property:located_next_to_body_of_water ?d . ?w rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:body_of_water } } GROUP BY ?w } . FILTER ( ?f = 1 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P276
Q486972 Q34442 Q838948
USER
Which human settlements are approximately 148 roads and works of art situated ?
(c(Q34442)|c(Q838948),P276,c(Q486972))
action approx
action union
action find_reverse_tuple_counts
relation P276
type Q486972
type Q34442
action find_reverse_tuple_counts
relation P276
type Q486972
type Q838948
value 148
[[{'concept': 'Q34442'}, {'concept': 'Q838948'}], 'P276', {'concept': 'Q486972'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) ?l WHERE { VALUES ( ?v ) { ( ontology:Q34442 ) ( ontology:Q838948 ) } . ?k rdf:type ?v } GROUP BY ?l } . FILTER ( ?t = 148 ) }
action approx
action union
action find_reverse_tuple_counts
relation location
type human settlement
type road
action find_reverse_tuple_counts
relation location
type human settlement
type work of art
value 148
[[{'concept': 'road'}, {'concept': 'work of art'}], 'location', {'concept': 'human settlement'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) ?l WHERE { VALUES ( ?v ) { ( ontology:road ) ( ontology:work_of_art ) } . ?k rdf:type ?v } GROUP BY ?l } . FILTER ( ?t = 148 ) }
[]
human settlement road work of art
Q81276 Q1618053 Q1278906
SYSTEM
Monnickendam, Terborg, IJzendijke
Q81276 Q2801571 Q1278906 Q1087187 Q1615032 Q1618053 Q2065987 Q1615365 Q81159 Q76996 Q429309 Q2054185 Q1025685 Q3303930 Q1007172 Q81186 Q312776
(c(Q34442)|c(Q838948),P276,c(Q486972))
action approx
action union
action find_reverse_tuple_counts
relation P276
type Q486972
type Q34442
action find_reverse_tuple_counts
relation P276
type Q486972
type Q838948
value 148
[ANSWERS] are approximately 148 roads and works of art situated
[[{'concept': 'Q34442'}, {'concept': 'Q838948'}], 'P276', {'concept': 'Q486972'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) ?l WHERE { VALUES ( ?v ) { ( ontology:Q34442 ) ( ontology:Q838948 ) } . ?k rdf:type ?v } GROUP BY ?l } . FILTER ( ?t = 148 ) }
Monnickendam Molenvliet IJzendijke Buren Oostburg Terborg Sluis Ootmarsum Hasselt Klundert Grootebroek Goor Borculo Medemblik Delden Genemuiden Tholen
Monnickendam, Terborg and IJzendijke are approximately 148 roads and works of art situated
Monnickendam Terborg IJzendijke
action approx
action union
action find_reverse_tuple_counts
relation location
type human settlement
type road
action find_reverse_tuple_counts
relation location
type human settlement
type work of art
value 148
[[{'concept': 'road'}, {'concept': 'work of art'}], 'location', {'concept': 'human settlement'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) ?l WHERE { VALUES ( ?v ) { ( ontology:road ) ( ontology:work_of_art ) } . ?k rdf:type ?v } GROUP BY ?l } . FILTER ( ?t = 148 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5233381 Q1406726
P27
Q1048835
USER
Which political territories do Fernando Lorenzen or David Emmanuel belong to ?
OR((Q1406726,P27,c(Q1048835)), (Q5233381,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q1406726
relation P27
action find
entity Q5233381
relation P27
type Q1048835
{'OR': [['Q1406726', 'P27', {'concept': 'Q1048835'}], ['Q5233381', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q1048835 . { { resource:Q1406726 property:P27 ?w } UNION { resource:Q5233381 property:P27 ?w } } }
David Emmanuel Fernando Lorenzen
action filter_type
action union
action find
entity Fernando Lorenzen
relation country of citizenship
action find
entity David Emmanuel
relation country of citizenship
type political territorial entity
{'OR': [['Fernando Lorenzen', 'country of citizenship', {'concept': 'political territorial entity'}], ['David Emmanuel', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:political_territorial_entity . { { resource:Fernando_Lorenzen property:country_of_citizenship ?w } UNION { resource:David_Emmanuel property:country_of_citizenship ?w } } }
[]
political territorial entity
Q769 Q183
SYSTEM
Grenada, Germany
Q769 Q183
OR((Q1406726,P27,c(Q1048835)), (Q5233381,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q1406726
relation P27
action find
entity Q5233381
relation P27
type Q1048835
Fernando Lorenzen or David Emmanuel belong to [ANSWERS]
{'OR': [['Q1406726', 'P27', {'concept': 'Q1048835'}], ['Q5233381', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q1048835 . { { resource:Q1406726 property:P27 ?w } UNION { resource:Q5233381 property:P27 ?w } } }
Grenada Germany
Fernando Lorenzen or David Emmanuel belong to Grenada and Germany
Grenada Germany
action filter_type
action union
action find
entity Fernando Lorenzen
relation country of citizenship
action find
entity David Emmanuel
relation country of citizenship
type political territorial entity
{'OR': [['Fernando Lorenzen', 'country of citizenship', {'concept': 'political territorial entity'}], ['David Emmanuel', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:political_territorial_entity . { { resource:Fernando_Lorenzen property:country_of_citizenship ?w } UNION { resource:David_Emmanuel property:country_of_citizenship ?w } } }
[]