Simple Question (Direct)
Simple Question
Q2038635
P19
Q515
USER
Which city was Otto Ernst Sutter born in ?
(Q2038635,P19,c(Q515))
action filter_type
action find
entity Q2038635
relation P19
type Q515
['Q2038635', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?w WHERE { resource:Q2038635 property:P19 ?w . ?w rdf:type ontology:Q515 }
Otto Ernst Sutter
action filter_type
action find
entity Otto Ernst Sutter
relation place of birth
type city
['Otto Ernst Sutter', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?w WHERE { resource:Otto_Ernst_Sutter property:place_of_birth ?w . ?w rdf:type ontology:city }
[]
city
Q2833
SYSTEM
Freiburg im Breisgau
Q2833
(Q2038635,P19,c(Q515))
action filter_type
action find
entity Q2038635
relation P19
type Q515
Otto Ernst Sutter was born in [ANSWER]
['Q2038635', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?w WHERE { resource:Q2038635 property:P19 ?w . ?w rdf:type ontology:Q515 }
Freiburg im Breisgau
Otto Ernst Sutter was born in Freiburg im Breisgau
Freiburg im Breisgau
action filter_type
action find
entity Otto Ernst Sutter
relation place of birth
type city
['Otto Ernst Sutter', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?w WHERE { resource:Otto_Ernst_Sutter property:place_of_birth ?w . ?w rdf:type ontology:city }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2833
P47
Q1048835
USER
Which political territory does that city share a border with ?
(c(Q1048835),P47,Q2833)
action filter_type
action find
entity Q2833
relation P47
type Q1048835
[{'concept': 'Q1048835'}, 'P47', 'Q2833']
SELECT DISTINCT ?w WHERE { resource:Q2833 property:P47 ?w . ?w rdf:type ontology:Q1048835 }
Freiburg im Breisgau
action filter_type
action find
entity Freiburg im Breisgau
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Freiburg im Breisgau']
SELECT DISTINCT ?w WHERE { resource:Freiburg_im_Breisgau property:shares_border_with ?w . ?w rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q8195
SYSTEM
Breisgau-Hochschwarzwald
Q8195
(c(Q1048835),P47,Q2833)
action filter_type
action find
entity Q2833
relation P47
type Q1048835
That city shares a border with the [ANSWER]
[{'concept': 'Q1048835'}, 'P47', 'Q2833']
SELECT DISTINCT ?w WHERE { resource:Q2833 property:P47 ?w . ?w rdf:type ontology:Q1048835 }
Breisgau-Hochschwarzwald
That city shares a border with the Breisgau-Hochschwarzwald
Breisgau-Hochschwarzwald
action filter_type
action find
entity Freiburg im Breisgau
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Freiburg im Breisgau']
SELECT DISTINCT ?w WHERE { resource:Freiburg_im_Breisgau property:shares_border_with ?w . ?w rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P47
Q1048835 Q515
USER
How many political territories and cities are adjacent to that political territory ?
(Q8195,P47,c(Q1048835)) (Q8195,P47,c(Q515)) (Q8195,P47,c(Q1048835)) (Q8195,P47,c(Q515))
action count
action union
action filter_type
action find
entity Q8195
relation P47
type Q1048835
action filter_type
action find
entity Q8195
relation P47
type Q515
['Q8195', 'P47', {'concept': 'Q1048835'}] ['Q8195', 'P47', {'concept': 'Q515'}] ['Q8195', 'P47', {'concept': 'Q1048835'}] ['Q8195', 'P47', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) WHERE { ?w rdf:type ?z . VALUES ( ?z ) { ( ontology:Q1048835 ) ( ontology:Q515 ) } }
action count
action union
action filter_type
action find
entity Breisgau-Hochschwarzwald
relation shares border with
type political territorial entity
action filter_type
action find
entity Breisgau-Hochschwarzwald
relation shares border with
type city
['Breisgau-Hochschwarzwald', 'shares border with', {'concept': 'political territorial entity'}] ['Breisgau-Hochschwarzwald', 'shares border with', {'concept': 'city'}] ['Breisgau-Hochschwarzwald', 'shares border with', {'concept': 'political territorial entity'}] ['Breisgau-Hochschwarzwald', 'shares border with', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) WHERE { ?w rdf:type ?z . VALUES ( ?z ) { ( ontology:political_territorial_entity ) ( ontology:city ) } }
[]
political territorial entity city
SYSTEM
4 political territories and 1 cities
Q2833 Q8200 Q8203 Q8198 Q8193
(Q8195,P47,c(Q1048835)) (Q8195,P47,c(Q515)) (Q8195,P47,c(Q1048835)) (Q8195,P47,c(Q515))
action count
action union
action filter_type
action find
entity Q8195
relation P47
type Q1048835
action filter_type
action find
entity Q8195
relation P47
type Q515
[ANSWER]
['Q8195', 'P47', {'concept': 'Q1048835'}] ['Q8195', 'P47', {'concept': 'Q515'}] ['Q8195', 'P47', {'concept': 'Q1048835'}] ['Q8195', 'P47', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) WHERE { ?w rdf:type ?z . VALUES ( ?z ) { ( ontology:Q1048835 ) ( ontology:Q515 ) } }
Freiburg im Breisgau Waldshut Schwarzwald-Baar Lörrach Emmendingen
4 political territories and 1 cities
action count
action union
action filter_type
action find
entity Breisgau-Hochschwarzwald
relation shares border with
type political territorial entity
action filter_type
action find
entity Breisgau-Hochschwarzwald
relation shares border with
type city
['Breisgau-Hochschwarzwald', 'shares border with', {'concept': 'political territorial entity'}] ['Breisgau-Hochschwarzwald', 'shares border with', {'concept': 'city'}] ['Breisgau-Hochschwarzwald', 'shares border with', {'concept': 'political territorial entity'}] ['Breisgau-Hochschwarzwald', 'shares border with', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) WHERE { ?w rdf:type ?z . VALUES ( ?z ) { ( ontology:political_territorial_entity ) ( ontology:city ) } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q923858 Q8195
P1376
Q515
USER
Which cities are the county seat of Breisgau-Hochschwarzwald or Szentlőrinc  District ?
OR((c(Q515),P1376,Q8195), (c(Q515),P1376,Q923858))
action filter_type
action union
action find_reverse
entity Q8195
relation P1376
action find_reverse
entity Q923858
relation P1376
type Q515
{'OR': [[{'concept': 'Q515'}, 'P1376', 'Q8195'], [{'concept': 'Q515'}, 'P1376', 'Q923858']]}
SELECT DISTINCT ?j WHERE { { VALUES ( ?t ) { ( resource:Q8195 ) ( resource:Q923858 ) } . ?j property:P1376 ?t } . ?j rdf:type ontology:Q515 }
Szentlőrinc  District Breisgau-Hochschwarzwald
action filter_type
action union
action find_reverse
entity Breisgau-Hochschwarzwald
relation capital of
action find_reverse
entity Szentlőrinc  District
relation capital of
type city
{'OR': [[{'concept': 'city'}, 'capital of', 'Breisgau-Hochschwarzwald'], [{'concept': 'city'}, 'capital of', 'Szentlőrinc  District']]}
SELECT DISTINCT ?j WHERE { { VALUES ( ?t ) { ( resource:Breisgau-Hochschwarzwald ) ( resource:Szentlőrinc__District ) } . ?j property:capital_of ?t } . ?j rdf:type ontology:city }
[]
city
Q2833 Q578343
SYSTEM
Freiburg im Breisgau, Szentlőrinc
Q2833 Q578343
OR((c(Q515),P1376,Q8195), (c(Q515),P1376,Q923858))
action filter_type
action union
action find_reverse
entity Q8195
relation P1376
action find_reverse
entity Q923858
relation P1376
type Q515
[ANSWERS] are the county seat of Breisgau-Hochschwarzwald or Szentlőrinc District
{'OR': [[{'concept': 'Q515'}, 'P1376', 'Q8195'], [{'concept': 'Q515'}, 'P1376', 'Q923858']]}
SELECT DISTINCT ?j WHERE { { VALUES ( ?t ) { ( resource:Q8195 ) ( resource:Q923858 ) } . ?j property:P1376 ?t } . ?j rdf:type ontology:Q515 }
Freiburg im Breisgau Szentlőrinc
Freiburg im Breisgau and Szentlőrinc are the county seat of Breisgau-Hochschwarzwald or Szentlőrinc District
Freiburg im Breisgau Szentlőrinc
action filter_type
action union
action find_reverse
entity Breisgau-Hochschwarzwald
relation capital of
action find_reverse
entity Szentlőrinc  District
relation capital of
type city
{'OR': [[{'concept': 'city'}, 'capital of', 'Breisgau-Hochschwarzwald'], [{'concept': 'city'}, 'capital of', 'Szentlőrinc  District']]}
SELECT DISTINCT ?j WHERE { { VALUES ( ?t ) { ( resource:Breisgau-Hochschwarzwald ) ( resource:Szentlőrinc__District ) } . ?j property:capital_of ?t } . ?j rdf:type ontology:city }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P206
Q355304 Q337567 Q515
USER
Which cities are located next to less number of watercourses and still waterss than that city ?
(c(Q515),P206,c(Q355304)|c(Q337567))
[{'concept': 'Q515'}, 'P206', [{'concept': 'Q355304'}, {'concept': 'Q337567'}]]
SELECT DISTINCT ?z WHERE { { ?z property:P206 ?f . VALUES ( ?f ) { ( ?y ) ( ?x ) } } . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q355304 . ?x rdf:type ontology:Q337567 }
[{'concept': 'city'}, 'located next to body of water', [{'concept': 'watercourse'}, {'concept': 'still waters'}]]
SELECT DISTINCT ?z WHERE { { ?z property:located_next_to_body_of_water ?f . VALUES ( ?f ) { ( ?y ) ( ?x ) } } . ?z rdf:type ontology:city . ?y rdf:type ontology:watercourse . ?x rdf:type ontology:still_waters }
[]
watercourse still waters city
Comparative|More/Less|Mult. entity type|Clarification
Q2833
SYSTEM
Did you mean Freiburg im Breisgau ?
(c(Q515),P206,c(Q355304)|c(Q337567))
[ANSWER]
[{'concept': 'Q515'}, 'P206', [{'concept': 'Q355304'}, {'concept': 'Q337567'}]]
SELECT DISTINCT ?z WHERE { { ?z property:P206 ?f . VALUES ( ?f ) { ( ?y ) ( ?x ) } } . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q355304 . ?x rdf:type ontology:Q337567 }
Did you mean Freiburg im Breisgau ?
Freiburg im Breisgau
[{'concept': 'city'}, 'located next to body of water', [{'concept': 'watercourse'}, {'concept': 'still waters'}]]
SELECT DISTINCT ?z WHERE { { ?z property:located_next_to_body_of_water ?f . VALUES ( ?f ) { ( ?y ) ( ?x ) } } . ?z rdf:type ontology:city . ?y rdf:type ontology:watercourse . ?x rdf:type ontology:still_waters }
[]
Comparative Reasoning (All)
USER
Yes
(c(Q515),P206,c(Q355304)|c(Q337567))
[{'concept': 'Q515'}, 'P206', [{'concept': 'Q355304'}, {'concept': 'Q337567'}]]
[{'concept': 'city'}, 'located next to body of water', [{'concept': 'watercourse'}, {'concept': 'still waters'}]]
[]
SYSTEM
18
Q1410 Q1519 Q846877 Q1486 Q602903 Q488869 Q217432 Q3572 Q623549 Q34261 Q612815 Q7473516 Q3826 Q41474 Q23661 Q3751 Q847550 Q3861
(c(Q515),P206,c(Q355304)|c(Q337567))
[ANSWER]
[{'concept': 'Q515'}, 'P206', [{'concept': 'Q355304'}, {'concept': 'Q337567'}]]
SELECT DISTINCT ?z WHERE { { { ?z property:P206 ?y } UNION { ?z property:P206 ?x } } . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q355304 . ?x rdf:type ontology:Q337567 }
Gibraltar Abu Dhabi Semboku Buenos Aires Yurihonjō Benalmádena Port Harcourt Tunis Puerto de la Cruz Port-au-Prince Garachico Tokyo Muscat Kingstown Wellington Praia Nikaho Doha
18
[{'concept': 'city'}, 'located next to body of water', [{'concept': 'watercourse'}, {'concept': 'still waters'}]]
SELECT DISTINCT ?z WHERE { { { ?z property:located_next_to_body_of_water ?y } UNION { ?z property:located_next_to_body_of_water ?x } } . ?z rdf:type ontology:city . ?y rdf:type ontology:watercourse . ?x rdf:type ontology:still_waters }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2833
P6
Q502895
USER
Which people are the head of government of Freiburg im Breisgau ?
(Q2833,P6,c(Q502895))
action filter_type
action find
entity Q2833
relation P6
type Q502895
['Q2833', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q2833 property:P6 ?s . ?s rdf:type ontology:Q502895 }
Freiburg im Breisgau
action filter_type
action find
entity Freiburg im Breisgau
relation head of government
type common name
['Freiburg im Breisgau', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Freiburg_im_Breisgau property:head_of_government ?s . ?s rdf:type ontology:common_name }
[]
common name
Q109550 Q1372670 Q98778
SYSTEM
Dieter Salomon, Eugen Keidel, Rolf Böhme
Q109550 Q1372670 Q98778
(Q2833,P6,c(Q502895))
action filter_type
action find
entity Q2833
relation P6
type Q502895
[ANSWERS] are the head of government of Freiburg im Breisgau
['Q2833', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q2833 property:P6 ?s . ?s rdf:type ontology:Q502895 }
Dieter Salomon Eugen Keidel Rolf Böhme
Dieter Salomon, Eugen Keidel and Rolf Böhme are the head of government of Freiburg im Breisgau
Dieter Salomon Eugen Keidel Rolf Böhme
action filter_type
action find
entity Freiburg im Breisgau
relation head of government
type common name
['Freiburg im Breisgau', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Freiburg_im_Breisgau property:head_of_government ?s . ?s rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q109550
P39
Q12737077
USER
Which occupations were the positions occupied by that person ?
(Q109550,P39,c(Q12737077))
action filter_type
action find
entity Q109550
relation P39
type Q12737077
['Q109550', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q109550 property:P39 ?y . ?y rdf:type ontology:Q12737077 }
Dieter Salomon
action filter_type
action find
entity Dieter Salomon
relation position held
type occupation
['Dieter Salomon', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Dieter_Salomon property:position_held ?y . ?y rdf:type ontology:occupation }
[]
occupation
Clarification for simple ques.
Q1372670
SYSTEM
Did you mean Eugen Keidel ?
Q109550 Q1372670 Q98778
(Q109550,P39,c(Q12737077)) (Q1372670,P39,c(Q12737077)) (Q98778,P39,c(Q12737077))
[ANSWER]
['Q109550', 'P39', {'concept': 'Q12737077'}] ['Q1372670', 'P39', {'concept': 'Q12737077'}] ['Q98778', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q109550 property:P39 ?y . ?y rdf:type ontology:Q12737077 }
Dieter Salomon Eugen Keidel Rolf Böhme
Did you mean Eugen Keidel ?
Eugen Keidel
['Dieter Salomon', 'position held', {'concept': 'occupation'}] ['Eugen Keidel', 'position held', {'concept': 'occupation'}] ['Rolf Böhme', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Dieter_Salomon property:position_held ?y . ?y rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
USER
No, I meant Dieter Salomon. Could you tell me the answer for that?
(Q109550,P39,c(Q12737077))
Q109550
['Q109550', 'P39', {'concept': 'Q12737077'}]
['Dieter Salomon', 'position held', {'concept': 'occupation'}]
[]
Q30185 Q17481175
SYSTEM
mayor, Member of the Landtag of Baden-Württemberg
Q30185 Q17481175
(Q109550,P39,c(Q12737077))
action filter_type
action find
entity Q109550
relation P39
type Q12737077
The [ANSWERS] were the positions occupied by that person
['Q109550', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q109550 property:P39 ?y . ?y rdf:type ontology:Q12737077 }
mayor Member of the Landtag of Baden-Württemberg
The mayor and Member of the Landtag of Baden-Württemberg were the positions occupied by that person
mayor Member of the Landtag of Baden-Württemberg
action filter_type
action find
entity Dieter Salomon
relation position held
type occupation
['Dieter Salomon', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Dieter_Salomon property:position_held ?y . ?y rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q9207516
P39
Q502895
USER
Did Dimitrios Lapas hold the position of those occupations ?
(Q9207516,P39,Q30185) (Q9207516,P39,Q17481175)
action is_in
entity prev_answer
action find
entity Q9207516
relation P39
['Q9207516', 'P39', 'Q30185'] ['Q9207516', 'P39', 'Q17481175']
ASK WHERE { resource:Q9207516 property:P39 ?l . VALUES ( ?l ) { ( resource:Q30185 ) ( resource:Q17481175 ) } }
Dimitrios Lapas
action is_in
entity prev_answer
action find
entity Dimitrios Lapas
relation position held
['Dimitrios Lapas', 'position held', 'mayor'] ['Dimitrios Lapas', 'position held', 'Member of the Landtag of Baden-Württemberg']
ASK WHERE { resource:Dimitrios_Lapas property:position_held ?l . VALUES ( ?l ) { ( resource:mayor ) ( resource:Member_of_the_Landtag_of_Baden-Württemberg ) } }
[]
common name
SYSTEM
NO
(Q9207516,P39,Q30185) (Q9207516,P39,Q17481175)
action is_in
entity prev_answer
action find
entity Q9207516
relation P39
[ANSWER]
['Q9207516', 'P39', 'Q30185'] ['Q9207516', 'P39', 'Q17481175']
ASK WHERE { resource:Q9207516 property:P39 ?l . VALUES ( ?l ) { ( resource:Q30185 ) ( resource:Q17481175 ) } }
No
action is_in
entity prev_answer
action find
entity Dimitrios Lapas
relation position held
['Dimitrios Lapas', 'position held', 'mayor'] ['Dimitrios Lapas', 'position held', 'Member of the Landtag of Baden-Württemberg']
ASK WHERE { resource:Dimitrios_Lapas property:position_held ?l . VALUES ( ?l ) { ( resource:mayor ) ( resource:Member_of_the_Landtag_of_Baden-Württemberg ) } }
[]