Simple Question (Direct)
Simple Question
Q1912960
P106
Q12737077
USER
Which occupation is the profession of Max Liess ?
(Q1912960,P106,c(Q12737077))
action filter_type
action find
entity Q1912960
relation P106
type Q12737077
['Q1912960', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { resource:Q1912960 property:P106 ?r . ?r rdf:type ontology:Q12737077 }
Max Liess
action filter_type
action find
entity Max Liess
relation occupation
type occupation
['Max Liess', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { resource:Max_Liess property:occupation ?r . ?r rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q1912960,P106,c(Q12737077))
action filter_type
action find
entity Q1912960
relation P106
type Q12737077
The [ANSWER] is the profession of Max Liess
['Q1912960', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { resource:Q1912960 property:P106 ?r . ?r rdf:type ontology:Q12737077 }
politician
The politician is the profession of Max Liess
politician
action filter_type
action find
entity Max Liess
relation occupation
type occupation
['Max Liess', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { resource:Max_Liess property:occupation ?r . ?r rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1912960
P21
Q290
USER
Which sex does that person possess ?
(Q82955,P21,c(Q290))
action filter_type
action find
entity Q1912960
relation P21
type Q290
['Q82955', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q290 . resource:Q1912960 property:P21 ?v }
Max Liess
action filter_type
action find
entity Max Liess
relation gender
type sex
['politician', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:sex . resource:Max_Liess property:gender ?v }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q82955,P21,c(Q290))
action filter_type
action find
entity Q1912960
relation P21
type Q290
That person possesses a [ANSWER]
['Q82955', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q290 . resource:Q1912960 property:P21 ?v }
male
That person possesses a male
male
action filter_type
action find
entity Max Liess
relation gender
type sex
['politician', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:sex . resource:Max_Liess property:gender ?v }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q105934 Q1912960
P937
Q515
USER
Which cities did Max Liess or Edgar Jaffé work ?
OR((Q1912960,P937,c(Q515)), (Q105934,P937,c(Q515)))
action filter_type
action union
action find
entity Q1912960
relation P937
action find
entity Q105934
relation P937
type Q515
{'OR': [['Q1912960', 'P937', {'concept': 'Q515'}], ['Q105934', 'P937', {'concept': 'Q515'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q1912960 property:P937 ?j } UNION { resource:Q105934 property:P937 ?j } } . ?j rdf:type ontology:Q515 }
Edgar Jaffé Max Liess
action filter_type
action union
action find
entity Max Liess
relation work location
action find
entity Edgar Jaffé
relation work location
type city
{'OR': [['Max Liess', 'work location', {'concept': 'city'}], ['Edgar Jaffé', 'work location', {'concept': 'city'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Max_Liess property:work_location ?j } UNION { resource:Edgar_Jaffé property:work_location ?j } } . ?j rdf:type ontology:city }
[]
city
Q1209 Q2119 Q2966
SYSTEM
Free Hanseatic City of Bremen, Mannheim, Heidelberg
Q1209 Q2119 Q2966
OR((Q1912960,P937,c(Q515)), (Q105934,P937,c(Q515)))
action filter_type
action union
action find
entity Q1912960
relation P937
action find
entity Q105934
relation P937
type Q515
Max Liess or Edgar Jaffé worked in [ANSWERS]
{'OR': [['Q1912960', 'P937', {'concept': 'Q515'}], ['Q105934', 'P937', {'concept': 'Q515'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q1912960 property:P937 ?j } UNION { resource:Q105934 property:P937 ?j } } . ?j rdf:type ontology:Q515 }
Free Hanseatic City of Bremen Mannheim Heidelberg
Max Liess or Edgar Jaffé worked in Free Hanseatic City of Bremen, Mannheim and Heidelberg
Free Hanseatic City of Bremen Mannheim Heidelberg
action filter_type
action union
action find
entity Max Liess
relation work location
action find
entity Edgar Jaffé
relation work location
type city
{'OR': [['Max Liess', 'work location', {'concept': 'city'}], ['Edgar Jaffé', 'work location', {'concept': 'city'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Max_Liess property:work_location ?j } UNION { resource:Edgar_Jaffé property:work_location ?j } } . ?j rdf:type ontology:city }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1209 Q2119 Q2966
P6
Q502895
USER
Who are the heads of the government of those cities ?
(Q1209,P6,c(Q502895)) (Q2119,P6,c(Q502895)) (Q2966,P6,c(Q502895))
action filter_type
action find
entity prev_answer
relation P6
type Q502895
['Q1209', 'P6', {'concept': 'Q502895'}] ['Q2119', 'P6', {'concept': 'Q502895'}] ['Q2966', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q502895 . VALUES ( ?u ) { ( resource:Q1209 ) ( resource:Q2119 ) ( resource:Q2966 ) } . ?u property:P6 ?p }
Free Hanseatic City of Bremen Mannheim Heidelberg
action filter_type
action find
entity prev_answer
relation head of government
type common name
['Free Hanseatic City of Bremen', 'head of government', {'concept': 'common name'}] ['Mannheim', 'head of government', {'concept': 'common name'}] ['Heidelberg', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:common_name . VALUES ( ?u ) { ( resource:Free_Hanseatic_City_of_Bremen ) ( resource:Mannheim ) ( resource:Heidelberg ) } . ?u property:head_of_government ?p }
[]
common name
Q69120 Q61604 Q2076493
SYSTEM
Hans Koschnick, Jens Böhrnsen, Peter Kurz
Q78175 Q73921 Q61604 Q124047 Q89494 Q69120 Q69081 Q69122 Q2076493 Q1512753 Q2575485 Q1281405
(Q1209,P6,c(Q502895)) (Q2119,P6,c(Q502895)) (Q2966,P6,c(Q502895))
action filter_type
action find
entity prev_answer
relation P6
type Q502895
The heads of the government of those cities are [ANSWERS]
['Q1209', 'P6', {'concept': 'Q502895'}] ['Q2119', 'P6', {'concept': 'Q502895'}] ['Q2966', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q502895 . VALUES ( ?u ) { ( resource:Q1209 ) ( resource:Q2119 ) ( resource:Q2966 ) } . ?u property:P6 ?p }
Erich Vagts Wilhelm Kaisen Jens Böhrnsen Johannes Schroers Willi Dehnkamp Hans Koschnick Henning Scherf Klaus Wedemeier Peter Kurz Gerhard Widder Wilhelm Varnholt Eckart Würzner
The heads of the government of those cities are Hans Koschnick, Jens Böhrnsen and Peter Kurz
Hans Koschnick Jens Böhrnsen Peter Kurz
action filter_type
action find
entity prev_answer
relation head of government
type common name
['Free Hanseatic City of Bremen', 'head of government', {'concept': 'common name'}] ['Mannheim', 'head of government', {'concept': 'common name'}] ['Heidelberg', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:common_name . VALUES ( ?u ) { ( resource:Free_Hanseatic_City_of_Bremen ) ( resource:Mannheim ) ( resource:Heidelberg ) } . ?u property:head_of_government ?p }
[]
Clarification
Simple Question|Single Entity|Indirect
Q61604
P27
Q1048835
USER
Which political territory is that person a civilian of ?
(Q61604,P27,c(Q1048835))
action filter_type
action find
entity Q61604
relation P27
type Q1048835
['Q61604', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?n WHERE { resource:Q61604 property:P27 ?n . ?n rdf:type ontology:Q1048835 }
Jens Böhrnsen
action filter_type
action find
entity Jens Böhrnsen
relation country of citizenship
type political territorial entity
['Jens Böhrnsen', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Jens_Böhrnsen property:country_of_citizenship ?n . ?n rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Clarification for simple ques.
Q69120
SYSTEM
Did you mean Hans Koschnick ?
Q69120 Q61604 Q2076493
(Q69120,P27,c(Q1048835)) (Q61604,P27,c(Q1048835)) (Q2076493,P27,c(Q1048835))
[ANSWER]
['Q69120', 'P27', {'concept': 'Q1048835'}] ['Q61604', 'P27', {'concept': 'Q1048835'}] ['Q2076493', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?n WHERE { resource:Q61604 property:P27 ?n . ?n rdf:type ontology:Q1048835 }
Hans Koschnick Jens Böhrnsen Peter Kurz
Did you mean Hans Koschnick ?
Hans Koschnick
['Hans Koschnick', 'country of citizenship', {'concept': 'political territorial entity'}] ['Jens Böhrnsen', 'country of citizenship', {'concept': 'political territorial entity'}] ['Peter Kurz', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Jens_Böhrnsen property:country_of_citizenship ?n . ?n rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Jens Böhrnsen. Could you tell me the answer for that?
(Q61604,P27,c(Q1048835))
Q61604
['Q61604', 'P27', {'concept': 'Q1048835'}]
['Jens Böhrnsen', 'country of citizenship', {'concept': 'political territorial entity'}]
[]
Q183
SYSTEM
Germany
Q183
(Q61604,P27,c(Q1048835))
action filter_type
action find
entity Q61604
relation P27
type Q1048835
[ANSWER] is that person a civilian of
['Q61604', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?n WHERE { resource:Q61604 property:P27 ?n . ?n rdf:type ontology:Q1048835 }
Germany
Germany is that person a civilian of
Germany
action filter_type
action find
entity Jens Böhrnsen
relation country of citizenship
type political territorial entity
['Jens Böhrnsen', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Jens_Böhrnsen property:country_of_citizenship ?n . ?n rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q183 Q75338
P27
Q502895
USER
Is Rudolf Borchardt a civilian of that political territory ?
(Q75338,P27,Q183)
action is_in
entity Q183
action find
entity Q75338
relation P27
['Q75338', 'P27', 'Q183']
ASK WHERE { resource:Q75338 property:P27 resource:Q183 }
Germany Rudolf Borchardt
action is_in
entity Germany
action find
entity Rudolf Borchardt
relation country of citizenship
['Rudolf Borchardt', 'country of citizenship', 'Germany']
ASK WHERE { resource:Rudolf_Borchardt property:country_of_citizenship resource:Germany }
[]
common name
SYSTEM
YES
(Q75338,P27,Q183)
action is_in
entity Q183
action find
entity Q75338
relation P27
[ANSWER]
['Q75338', 'P27', 'Q183']
ASK WHERE { resource:Q75338 property:P27 resource:Q183 }
Yes
action is_in
entity Germany
action find
entity Rudolf Borchardt
relation country of citizenship
['Rudolf Borchardt', 'country of citizenship', 'Germany']
ASK WHERE { resource:Rudolf_Borchardt property:country_of_citizenship resource:Germany }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q2966 Q664149
P190
Q56061
USER
Is Agrieșel partner town of Heidelberg ?
(Q2966,P190,Q664149)
action is_in
entity Q664149
action find
entity Q2966
relation P190
['Q2966', 'P190', 'Q664149']
ASK WHERE { resource:Q2966 property:P190 resource:Q664149 }
Heidelberg Agrieșel
action is_in
entity Agrieșel
action find
entity Heidelberg
relation sister city
['Heidelberg', 'sister city', 'Agrieșel']
ASK WHERE { resource:Heidelberg property:sister_city resource:Agrieșel }
[]
administrative territorial entity
SYSTEM
NO
(Q2966,P190,Q664149)
action is_in
entity Q664149
action find
entity Q2966
relation P190
[ANSWER]
['Q2966', 'P190', 'Q664149']
ASK WHERE { resource:Q2966 property:P190 resource:Q664149 }
No
action is_in
entity Agrieșel
action find
entity Heidelberg
relation sister city
['Heidelberg', 'sister city', 'Agrieșel']
ASK WHERE { resource:Heidelberg property:sister_city resource:Agrieșel }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1209
P206
Q355304 Q15324
USER
How many watercourses or bodies of water are situated nearby Free Hanseatic City of Bremen ?
(Q1209,P206,c(Q355304)) (Q1209,P206,c(Q15324))
action count
action union
action filter_type
action find
entity Q1209
relation P206
type Q355304
action filter_type
action find
entity Q1209
relation P206
type Q15324
['Q1209', 'P206', {'concept': 'Q355304'}] ['Q1209', 'P206', {'concept': 'Q15324'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { ?q rdf:type ?w . VALUES ( ?w ) { ( ontology:Q355304 ) ( ontology:Q15324 ) } }
Free Hanseatic City of Bremen
action count
action union
action filter_type
action find
entity Free Hanseatic City of Bremen
relation located next to body of water
type watercourse
action filter_type
action find
entity Free Hanseatic City of Bremen
relation located next to body of water
type body of water
['Free Hanseatic City of Bremen', 'located next to body of water', {'concept': 'watercourse'}] ['Free Hanseatic City of Bremen', 'located next to body of water', {'concept': 'body of water'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { ?q rdf:type ?w . VALUES ( ?w ) { ( ontology:watercourse ) ( ontology:body_of_water ) } }
[]
watercourse body of water
SYSTEM
2
Q1650 Q1693
(Q1209,P206,c(Q355304)) (Q1209,P206,c(Q15324))
action count
action union
action filter_type
action find
entity Q1209
relation P206
type Q355304
action filter_type
action find
entity Q1209
relation P206
type Q15324
[ANSWER]
['Q1209', 'P206', {'concept': 'Q355304'}] ['Q1209', 'P206', {'concept': 'Q15324'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { ?q rdf:type ?w . VALUES ( ?w ) { ( ontology:Q355304 ) ( ontology:Q15324 ) } }
Weser North Sea
2
action count
action union
action filter_type
action find
entity Free Hanseatic City of Bremen
relation located next to body of water
type watercourse
action filter_type
action find
entity Free Hanseatic City of Bremen
relation located next to body of water
type body of water
['Free Hanseatic City of Bremen', 'located next to body of water', {'concept': 'watercourse'}] ['Free Hanseatic City of Bremen', 'located next to body of water', {'concept': 'body of water'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { ?q rdf:type ?w . VALUES ( ?w ) { ( ontology:watercourse ) ( ontology:body_of_water ) } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q827041
P206
Q15324 Q355304 Q515
USER
How many cities are located next to around the same number of bodies of water or watercourses as Beroun ?
(c(Q515),P206,c(Q15324)|c(Q355304))
action count
action approx
action union
action find_tuple_counts
relation P206
type Q515
type Q15324
action find_tuple_counts
relation P206
type Q515
type Q355304
action count
action filter_multi_types
action find
entity Q827041
relation P206
type Q15324
type Q355304
[{'concept': 'Q515'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) ?a WHERE { ?l rdf:type ?n . VALUES ( ?n ) { ( ontology:Q355304 ) ( ontology:Q15324 ) } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { resource:Q827041 property:P206 ?y . { VALUES ( ?o ) { ( ontology:Q15324 ) ( ontology:Q355304 ) } . ?y rdf:type ?o } } } . FILTER ( ?e = ?u ) }
Beroun
action count
action approx
action union
action find_tuple_counts
relation located next to body of water
type city
type body of water
action find_tuple_counts
relation located next to body of water
type city
type watercourse
action count
action filter_multi_types
action find
entity Beroun
relation located next to body of water
type body of water
type watercourse
[{'concept': 'city'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) ?a WHERE { ?l rdf:type ?n . VALUES ( ?n ) { ( ontology:watercourse ) ( ontology:body_of_water ) } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { resource:Beroun property:located_next_to_body_of_water ?y . { VALUES ( ?o ) { ( ontology:body_of_water ) ( ontology:watercourse ) } . ?y rdf:type ?o } } } . FILTER ( ?e = ?u ) }
[]
body of water watercourse city
SYSTEM
87
Q1410 Q1794 Q1863 Q1865 Q1519 Q496499 Q3974 Q846877 Q19689 Q1486 Q2966 Q34217 Q496479 Q602903 Q1461 Q488869 Q217432 Q827041 Q3572 Q623549 Q4024 Q3806 Q2973 Q34261 Q3014 Q1773 Q1844 Q14821 Q819587 Q3958 Q3955 Q23430 Q633272 Q2773 Q612815 Q320943 Q1858 Q633935 Q320416 Q7473516 Q1761 Q890122 Q4007 Q7070 Q3826 Q653545 Q8684 Q270704 Q41474 Q4174 Q4346 Q3838 Q2833 Q1209 Q23661 Q3931 Q3751 Q3750 Q3200 Q157835 Q847550 Q3936 Q2936 Q646780 Q3214 Q1533 Q1530 Q1953 Q5838 Q7027 Q3857 Q3994 Q19660 Q11194 Q3915 Q2119 Q3069 Q1720 Q1721 Q329996 Q3904 Q695920 Q2910 Q3861 Q1899 Q2999 Q2844
(c(Q515),P206,c(Q15324)|c(Q355304))
action count
action approx
action union
action find_tuple_counts
relation P206
type Q515
type Q15324
action find_tuple_counts
relation P206
type Q515
type Q355304
action count
action filter_multi_types
action find
entity Q827041
relation P206
type Q15324
type Q355304
[ANSWER]
[{'concept': 'Q515'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) ?a WHERE { ?l rdf:type ?n . VALUES ( ?n ) { ( ontology:Q355304 ) ( ontology:Q15324 ) } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { resource:Q827041 property:P206 ?y . { VALUES ( ?o ) { ( ontology:Q15324 ) ( ontology:Q355304 ) } . ?y rdf:type ?o } } } . FILTER ( ?e = ?u ) }
Gibraltar Frankfurt Andorra la Vella Kuala Lumpur Abu Dhabi Kazuno Landshut Semboku Tirana Buenos Aires Heidelberg Oxford Yokote Yurihonjō Manila Benalmádena Port Harcourt Beroun Tunis Puerto de la Cruz Frankfurt (Oder) Tübingen Darmstadt Port-au-Prince Wolfsburg Riga Vaduz Coburg Noshiro Neubrandenburg Weimar Ulaanbaatar Yuzawa Braunschweig Garachico Matsudo Hanoi Oga Tartessos Tokyo Dublin Bolhrad Rosenheim Eisenach Muscat Kita-Akita Seoul Třebíč Kingstown Emden Waren (Müritz) Kinshasa Freiburg im Breisgau Free Hanseatic City of Bremen Wellington Brandenburg an der Havel Praia Gera Salzgitter Zaporizhzhya Nikaho Bamberg Oldenburg Katagami Cottbus Caracas Baghdad Yerevan Kabul Straubing Wilhelmshaven Kempten Bucharest Sarajevo Antananarivo Mannheim Bottrop Mainz Wiesbaden Ōdate Mbabane Daisen Ludwigshafen Doha Kyiv Würzburg Brasília
87
action count
action approx
action union
action find_tuple_counts
relation located next to body of water
type city
type body of water
action find_tuple_counts
relation located next to body of water
type city
type watercourse
action count
action filter_multi_types
action find
entity Beroun
relation located next to body of water
type body of water
type watercourse
[{'concept': 'city'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) ?a WHERE { ?l rdf:type ?n . VALUES ( ?n ) { ( ontology:watercourse ) ( ontology:body_of_water ) } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { resource:Beroun property:located_next_to_body_of_water ?y . { VALUES ( ?o ) { ( ontology:body_of_water ) ( ontology:watercourse ) } . ?y rdf:type ?o } } } . FILTER ( ?e = ?u ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q633272
P206
Q15324 Q355304 Q515
USER
And also tell me about Yuzawa?
(c(Q515),P206,c(Q15324)|c(Q355304))
action count
action approx
action union
action find_tuple_counts
relation P206
type Q515
type Q15324
action find_tuple_counts
relation P206
type Q515
type Q355304
action count
action filter_multi_types
action find
entity Q633272
relation P206
type Q15324
type Q355304
[{'concept': 'Q515'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?a ) WHERE { { { ?e rdf:type ontology:Q355304 } UNION { ?e rdf:type ontology:Q15324 } } . resource:Q633272 property:P206 ?e } } . FILTER ( ?p = ?a ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) ?x WHERE { { ?h rdf:type ontology:Q355304 . ?x rdf:type ontology:Q515 . ?x property:P206 ?h } UNION { ?x property:P206 ?h . ?h rdf:type ontology:Q15324 . ?x rdf:type ontology:Q515 } } GROUP BY ?x } }
Yuzawa
action count
action approx
action union
action find_tuple_counts
relation located next to body of water
type city
type body of water
action find_tuple_counts
relation located next to body of water
type city
type watercourse
action count
action filter_multi_types
action find
entity Yuzawa
relation located next to body of water
type body of water
type watercourse
[{'concept': 'city'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?a ) WHERE { { { ?e rdf:type ontology:watercourse } UNION { ?e rdf:type ontology:body_of_water } } . resource:Yuzawa property:located_next_to_body_of_water ?e } } . FILTER ( ?p = ?a ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) ?x WHERE { { ?h rdf:type ontology:watercourse . ?x rdf:type ontology:city . ?x property:located_next_to_body_of_water ?h } UNION { ?x property:located_next_to_body_of_water ?h . ?h rdf:type ontology:body_of_water . ?x rdf:type ontology:city } } GROUP BY ?x } }
[]
body of water watercourse city
SYSTEM
87
Q1410 Q1794 Q1863 Q1865 Q1519 Q496499 Q3974 Q846877 Q19689 Q1486 Q2966 Q34217 Q496479 Q602903 Q1461 Q488869 Q217432 Q827041 Q3572 Q623549 Q4024 Q3806 Q2973 Q34261 Q3014 Q1773 Q1844 Q14821 Q819587 Q3958 Q3955 Q23430 Q633272 Q2773 Q612815 Q320943 Q1858 Q633935 Q320416 Q7473516 Q1761 Q890122 Q4007 Q7070 Q3826 Q653545 Q8684 Q270704 Q41474 Q4174 Q4346 Q3838 Q2833 Q1209 Q23661 Q3931 Q3751 Q3750 Q3200 Q157835 Q847550 Q3936 Q2936 Q646780 Q3214 Q1533 Q1530 Q1953 Q5838 Q7027 Q3857 Q3994 Q19660 Q11194 Q3915 Q2119 Q3069 Q1720 Q1721 Q329996 Q3904 Q695920 Q2910 Q3861 Q1899 Q2999 Q2844
(c(Q515),P206,c(Q15324)|c(Q355304))
action count
action approx
action union
action find_tuple_counts
relation P206
type Q515
type Q15324
action find_tuple_counts
relation P206
type Q515
type Q355304
action count
action filter_multi_types
action find
entity Q633272
relation P206
type Q15324
type Q355304
[ANSWER]
[{'concept': 'Q515'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?a ) WHERE { { { ?e rdf:type ontology:Q355304 } UNION { ?e rdf:type ontology:Q15324 } } . resource:Q633272 property:P206 ?e } } . FILTER ( ?p = ?a ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) ?x WHERE { { ?h rdf:type ontology:Q355304 . ?x rdf:type ontology:Q515 . ?x property:P206 ?h } UNION { ?x property:P206 ?h . ?h rdf:type ontology:Q15324 . ?x rdf:type ontology:Q515 } } GROUP BY ?x } }
Gibraltar Frankfurt Andorra la Vella Kuala Lumpur Abu Dhabi Kazuno Landshut Semboku Tirana Buenos Aires Heidelberg Oxford Yokote Yurihonjō Manila Benalmádena Port Harcourt Beroun Tunis Puerto de la Cruz Frankfurt (Oder) Tübingen Darmstadt Port-au-Prince Wolfsburg Riga Vaduz Coburg Noshiro Neubrandenburg Weimar Ulaanbaatar Yuzawa Braunschweig Garachico Matsudo Hanoi Oga Tartessos Tokyo Dublin Bolhrad Rosenheim Eisenach Muscat Kita-Akita Seoul Třebíč Kingstown Emden Waren (Müritz) Kinshasa Freiburg im Breisgau Free Hanseatic City of Bremen Wellington Brandenburg an der Havel Praia Gera Salzgitter Zaporizhzhya Nikaho Bamberg Oldenburg Katagami Cottbus Caracas Baghdad Yerevan Kabul Straubing Wilhelmshaven Kempten Bucharest Sarajevo Antananarivo Mannheim Bottrop Mainz Wiesbaden Ōdate Mbabane Daisen Ludwigshafen Doha Kyiv Würzburg Brasília
87
action count
action approx
action union
action find_tuple_counts
relation located next to body of water
type city
type body of water
action find_tuple_counts
relation located next to body of water
type city
type watercourse
action count
action filter_multi_types
action find
entity Yuzawa
relation located next to body of water
type body of water
type watercourse
[{'concept': 'city'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?a ) WHERE { { { ?e rdf:type ontology:watercourse } UNION { ?e rdf:type ontology:body_of_water } } . resource:Yuzawa property:located_next_to_body_of_water ?e } } . FILTER ( ?p = ?a ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) ?x WHERE { { ?h rdf:type ontology:watercourse . ?x rdf:type ontology:city . ?x property:located_next_to_body_of_water ?h } UNION { ?x property:located_next_to_body_of_water ?h . ?h rdf:type ontology:body_of_water . ?x rdf:type ontology:city } } GROUP BY ?x } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q61604
P710
Q1499496
USER
Which German presidential elections did Jens Böhrnsen participate in ?
(c(Q1499496),P710,Q61604)
action filter_type
action find_reverse
entity Q61604
relation P710
type Q1499496
[{'concept': 'Q1499496'}, 'P710', 'Q61604']
SELECT DISTINCT ?p WHERE { ?p property:P710 resource:Q61604 . ?p rdf:type ontology:Q1499496 }
Jens Böhrnsen
action filter_type
action find_reverse
entity Jens Böhrnsen
relation participant
type German presidential election
[{'concept': 'German presidential election'}, 'participant', 'Jens Böhrnsen']
SELECT DISTINCT ?p WHERE { ?p property:participant resource:Jens_Böhrnsen . ?p rdf:type ontology:German_presidential_election }
[]
German presidential election
Q707063 Q670933
SYSTEM
German presidential election, 2010, German presidential election, 2012
Q707063 Q670933
(c(Q1499496),P710,Q61604)
action filter_type
action find_reverse
entity Q61604
relation P710
type Q1499496
[ANSWERS]
[{'concept': 'Q1499496'}, 'P710', 'Q61604']
SELECT DISTINCT ?p WHERE { ?p property:P710 resource:Q61604 . ?p rdf:type ontology:Q1499496 }
German presidential election, 2010 German presidential election, 2012
Jens Böhrnsen participated in German presidential election, 2010 and German presidential election, 2012
German presidential election, 2010 German presidential election, 2012
action filter_type
action find_reverse
entity Jens Böhrnsen
relation participant
type German presidential election
[{'concept': 'German presidential election'}, 'participant', 'Jens Böhrnsen']
SELECT DISTINCT ?p WHERE { ?p property:participant resource:Jens_Böhrnsen . ?p rdf:type ontology:German_presidential_election }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q61604
P1344
Q1499496
USER
Which German presidential elections did Jens Böhrnsen participate in ?
(Q61604,P1344,c(Q1499496))
action filter_type
action find
entity Q61604
relation P1344
type Q1499496
['Q61604', 'P1344', {'concept': 'Q1499496'}]
SELECT DISTINCT ?k WHERE { resource:Q61604 property:P1344 ?k . ?k rdf:type ontology:Q1499496 }
Jens Böhrnsen
action filter_type
action find
entity Jens Böhrnsen
relation participant of
type German presidential election
['Jens Böhrnsen', 'participant of', {'concept': 'German presidential election'}]
SELECT DISTINCT ?k WHERE { resource:Jens_Böhrnsen property:participant_of ?k . ?k rdf:type ontology:German_presidential_election }
[]
German presidential election
Q707063 Q670933
SYSTEM
German presidential election, 2010, German presidential election, 2012
Q707063 Q670933
(Q61604,P1344,c(Q1499496))
action filter_type
action find
entity Q61604
relation P1344
type Q1499496
[ANSWERS]
['Q61604', 'P1344', {'concept': 'Q1499496'}]
SELECT DISTINCT ?k WHERE { resource:Q61604 property:P1344 ?k . ?k rdf:type ontology:Q1499496 }
German presidential election, 2010 German presidential election, 2012
Jens Böhrnsen participated in German presidential election, 2010 and German presidential election, 2012
German presidential election, 2010 German presidential election, 2012
action filter_type
action find
entity Jens Böhrnsen
relation participant of
type German presidential election
['Jens Böhrnsen', 'participant of', {'concept': 'German presidential election'}]
SELECT DISTINCT ?k WHERE { resource:Jens_Böhrnsen property:participant_of ?k . ?k rdf:type ontology:German_presidential_election }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2966
P159
Q43229
USER
Which organizations have their HQ location at Heidelberg ?
(c(Q43229),P159,Q2966)
action filter_type
action find_reverse
entity Q2966
relation P159
type Q43229
[{'concept': 'Q43229'}, 'P159', 'Q2966']
SELECT DISTINCT ?v WHERE { ?v property:P159 resource:Q2966 . ?v rdf:type ontology:Q43229 }
Heidelberg
action filter_type
action find_reverse
entity Heidelberg
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Heidelberg']
SELECT DISTINCT ?v WHERE { ?v property:headquarters_location resource:Heidelberg . ?v rdf:type ontology:organization }
[]
organization
Q286778 Q632233 Q637707
SYSTEM
ABB Stotz-Kontakt, HeidelbergCement, Lamy
Q695267 Q286778 Q632233 Q637707 Q2207399
(c(Q43229),P159,Q2966)
action filter_type
action find_reverse
entity Q2966
relation P159
type Q43229
[ANSWERS] have their HQ location at Heidelberg
[{'concept': 'Q43229'}, 'P159', 'Q2966']
SELECT DISTINCT ?v WHERE { ?v property:P159 resource:Q2966 . ?v rdf:type ontology:Q43229 }
European Molecular Biology Laboratory ABB Stotz-Kontakt HeidelbergCement Lamy SNP Schneider-Neureither & Partner AG
ABB Stotz-Kontakt, HeidelbergCement and Lamy have their HQ location at Heidelberg
ABB Stotz-Kontakt HeidelbergCement Lamy
action filter_type
action find_reverse
entity Heidelberg
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Heidelberg']
SELECT DISTINCT ?v WHERE { ?v property:headquarters_location resource:Heidelberg . ?v rdf:type ontology:organization }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q286778 Q632233 Q637707
P1454
Q1269299
USER
Which business organizations are the types of legal form of ABB Stotz-Kontakt, HeidelbergCement and Lamy ?
(Q286778,P1454,c(Q1269299)) (Q632233,P1454,c(Q1269299)) (Q637707,P1454,c(Q1269299))
action union
action filter_type
action find
entity Q286778
relation P1454
type Q1269299
action filter_type
action find
entity Q632233
relation P1454
type Q1269299
action filter_type
action find
entity Q637707
relation P1454
type Q1269299
['Q286778', 'P1454', {'concept': 'Q1269299'}] ['Q632233', 'P1454', {'concept': 'Q1269299'}] ['Q637707', 'P1454', {'concept': 'Q1269299'}]
SELECT DISTINCT ?i WHERE { { resource:Q286778 property:P1454 ?i . ?i rdf:type ontology:Q1269299 } UNION { resource:Q632233 property:P1454 ?i . ?i rdf:type ontology:Q1269299 } }
ABB Stotz-Kontakt HeidelbergCement Lamy
action union
action filter_type
action find
entity ABB Stotz-Kontakt
relation legal form
type type of business entity
action filter_type
action find
entity HeidelbergCement
relation legal form
type type of business entity
action filter_type
action find
entity Lamy
relation legal form
type type of business entity
['ABB Stotz-Kontakt', 'legal form', {'concept': 'type of business entity'}] ['HeidelbergCement', 'legal form', {'concept': 'type of business entity'}] ['Lamy', 'legal form', {'concept': 'type of business entity'}]
SELECT DISTINCT ?i WHERE { { resource:ABB_Stotz-Kontakt property:legal_form ?i . ?i rdf:type ontology:type_of_business_entity } UNION { resource:HeidelbergCement property:legal_form ?i . ?i rdf:type ontology:type_of_business_entity } }
[]
type of business entity
Q460178 Q422062 Q460178
SYSTEM
Gesellschaft mit beschränkter Haftung for 1st, 3rd, Aktiengesellschaft for 2nd
Q460178 Q422062 Q460178
(Q286778,P1454,c(Q1269299)) (Q632233,P1454,c(Q1269299)) (Q637707,P1454,c(Q1269299))
action union
action filter_type
action find
entity Q286778
relation P1454
type Q1269299
action filter_type
action find
entity Q632233
relation P1454
type Q1269299
action filter_type
action find
entity Q637707
relation P1454
type Q1269299
[ANSWERS]
['Q286778', 'P1454', {'concept': 'Q1269299'}] ['Q632233', 'P1454', {'concept': 'Q1269299'}] ['Q637707', 'P1454', {'concept': 'Q1269299'}]
SELECT DISTINCT ?i WHERE { { resource:Q286778 property:P1454 ?i . ?i rdf:type ontology:Q1269299 } UNION { resource:Q632233 property:P1454 ?i . ?i rdf:type ontology:Q1269299 } }
Gesellschaft mit beschränkter Haftung Aktiengesellschaft Gesellschaft mit beschränkter Haftung
Gesellschaft mit beschränkter Haftung, Aktiengesellschaft and Gesellschaft mit beschränkter Haftung are the types of legal form of ABB Stotz-Kontakt, HeidelbergCement and Lamy
Gesellschaft mit beschränkter Haftung Aktiengesellschaft Gesellschaft mit beschränkter Haftung
action union
action filter_type
action find
entity ABB Stotz-Kontakt
relation legal form
type type of business entity
action filter_type
action find
entity HeidelbergCement
relation legal form
type type of business entity
action filter_type
action find
entity Lamy
relation legal form
type type of business entity
['ABB Stotz-Kontakt', 'legal form', {'concept': 'type of business entity'}] ['HeidelbergCement', 'legal form', {'concept': 'type of business entity'}] ['Lamy', 'legal form', {'concept': 'type of business entity'}]
SELECT DISTINCT ?i WHERE { { resource:ABB_Stotz-Kontakt property:legal_form ?i . ?i rdf:type ontology:type_of_business_entity } UNION { resource:HeidelbergCement property:legal_form ?i . ?i rdf:type ontology:type_of_business_entity } }
[]