Simple Question (Direct)
Simple Question
Q711098
P108
Q3914
USER
Which school is the employer of Jean-Louis Bourlanges ?
(Q711098,P108,c(Q3914))
action filter_type
action find
entity Q711098
relation P108
type Q3914
['Q711098', 'P108', {'concept': 'Q3914'}]
SELECT DISTINCT ?p WHERE { resource:Q711098 property:P108 ?p . ?p rdf:type ontology:Q3914 }
Jean-Louis Bourlanges
action filter_type
action find
entity Jean-Louis Bourlanges
relation employer
type school
['Jean-Louis Bourlanges', 'employer', {'concept': 'school'}]
SELECT DISTINCT ?p WHERE { resource:Jean-Louis_Bourlanges property:employer ?p . ?p rdf:type ontology:school }
[]
school
Q859363
SYSTEM
Sciences Po
Q859363
(Q711098,P108,c(Q3914))
action filter_type
action find
entity Q711098
relation P108
type Q3914
De [ANSWER] is the employer of Jean-Louis Bourlanges
['Q711098', 'P108', {'concept': 'Q3914'}]
SELECT DISTINCT ?p WHERE { resource:Q711098 property:P108 ?p . ?p rdf:type ontology:Q3914 }
Sciences Po
De Sciences Po is the employer of Jean-Louis Bourlanges
Sciences Po
action filter_type
action find
entity Jean-Louis Bourlanges
relation employer
type school
['Jean-Louis Bourlanges', 'employer', {'concept': 'school'}]
SELECT DISTINCT ?p WHERE { resource:Jean-Louis_Bourlanges property:employer ?p . ?p rdf:type ontology:school }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q711098
P937
Q515
USER
Where did Jean-Louis Bourlanges work ?
(Q711098,P937,c(Q515))
action filter_type
action find
entity Q711098
relation P937
type Q515
['Q711098', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?z WHERE { resource:Q711098 property:P937 ?z . ?z rdf:type ontology:Q515 }
Jean-Louis Bourlanges
action filter_type
action find
entity Jean-Louis Bourlanges
relation work location
type city
['Jean-Louis Bourlanges', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?z WHERE { resource:Jean-Louis_Bourlanges property:work_location ?z . ?z rdf:type ontology:city }
[]
city
Q6602
SYSTEM
Strasbourg
Q6602
(Q711098,P937,c(Q515))
action filter_type
action find
entity Q711098
relation P937
type Q515
Jean-Louis Bourlanges worked in [ANSWER]
['Q711098', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?z WHERE { resource:Q711098 property:P937 ?z . ?z rdf:type ontology:Q515 }
Strasbourg
Jean-Louis Bourlanges worked in Strasbourg
Strasbourg
action filter_type
action find
entity Jean-Louis Bourlanges
relation work location
type city
['Jean-Louis Bourlanges', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?z WHERE { resource:Jean-Louis_Bourlanges property:work_location ?z . ?z rdf:type ontology:city }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1287292
Q515
USER
And how about Hendrik Nachtsheim?
(Q1287292,P937,c(Q515))
action filter_type
action find
entity Q1287292
relation P937
type Q515
['Q1287292', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q515 . resource:Q1287292 property:P937 ?c }
Hendrik Nachtsheim
action filter_type
action find
entity Hendrik Nachtsheim
relation work location
type city
['Hendrik Nachtsheim', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:city . resource:Hendrik_Nachtsheim property:work_location ?c }
[]
city
Q1794
SYSTEM
Frankfurt
Q1794
(Q1287292,P937,c(Q515))
action filter_type
action find
entity Q1287292
relation P937
type Q515
[ANSWER]
['Q1287292', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q515 . resource:Q1287292 property:P937 ?c }
Frankfurt
Frankfurt
action filter_type
action find
entity Hendrik Nachtsheim
relation work location
type city
['Hendrik Nachtsheim', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:city . resource:Hendrik_Nachtsheim property:work_location ?c }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P206
Q15324 Q355304 Q515
USER
How many cities are located next to greater number of bodies of water and watercourses than that city ?
(c(Q515),P206,c(Q15324)|c(Q355304))
action count
action greater
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 Q1794
relation P206
type Q15324
type Q355304
[{'concept': 'Q515'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) ?n WHERE { ?i rdf:type ?z . VALUES ( ?z ) { ( ontology:Q15324 ) ( ontology:Q355304 ) } } GROUP BY ?n } . FILTER ( ?y > ?k ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?k ) WHERE { resource:Q1794 property:P206 ?e . { { ?e rdf:type ontology:Q355304 } UNION { ?e rdf:type ontology:Q15324 } } } } }
action count
action greater
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 Frankfurt
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 ( ?n ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) ?n WHERE { ?i rdf:type ?z . VALUES ( ?z ) { ( ontology:body_of_water ) ( ontology:watercourse ) } } GROUP BY ?n } . FILTER ( ?y > ?k ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?k ) WHERE { resource:Frankfurt property:located_next_to_body_of_water ?e . { { ?e rdf:type ontology:watercourse } UNION { ?e rdf:type ontology:body_of_water } } } } }
[]
body of water watercourse city
SYSTEM
30
Q1410 Q3075 Q1865 Q19689 Q3004 Q1461 Q2865 Q1711 Q2978 Q2973 Q1773 Q14821 Q819587 Q1761 Q4007 Q2706 Q7070 Q2749 Q4174 Q1209 Q3750 Q3126 Q3042 Q3046 Q3936 Q2936 Q2100 Q1731 Q2119 Q1720
(c(Q515),P206,c(Q15324)|c(Q355304))
action count
action greater
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 Q1794
relation P206
type Q15324
type Q355304
[ANSWER]
[{'concept': 'Q515'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) ?n WHERE { ?i rdf:type ?z . VALUES ( ?z ) { ( ontology:Q15324 ) ( ontology:Q355304 ) } } GROUP BY ?n } . FILTER ( ?y > ?k ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?k ) WHERE { resource:Q1794 property:P206 ?e . { { ?e rdf:type ontology:Q355304 } UNION { ?e rdf:type ontology:Q15324 } } } } }
Gibraltar Fürth Kuala Lumpur Tirana Ingolstadt Manila Kassel Potsdam Regensburg Darmstadt Riga Coburg Noshiro Dublin Rosenheim Bremerhaven Eisenach Augsburg Emden Free Hanseatic City of Bremen Gera Erlangen Offenbach am Main Pforzheim Bamberg Oldenburg Duisburg Dresden Mannheim Mainz
30
action count
action greater
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 Frankfurt
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 ( ?n ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) ?n WHERE { ?i rdf:type ?z . VALUES ( ?z ) { ( ontology:body_of_water ) ( ontology:watercourse ) } } GROUP BY ?n } . FILTER ( ?y > ?k ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?k ) WHERE { resource:Frankfurt property:located_next_to_body_of_water ?e . { { ?e rdf:type ontology:watercourse } UNION { ?e rdf:type ontology:body_of_water } } } } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1448835 Q6602
P19 P190
Q56061
USER
Which administrative territories are the sister cities of Strasbourg or were Franz Sales Günter born in ?
OR((Q6602,P190,c(Q56061)), (Q1448835,P19,c(Q56061)))
action filter_type
action union
action find
entity Q6602
relation P190
action find
entity Q1448835
relation P19
type Q56061
{'OR': [['Q6602', 'P190', {'concept': 'Q56061'}], ['Q1448835', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q6602 property:P190 ?j } UNION { resource:Q1448835 property:P19 ?j } } . ?j rdf:type ontology:Q56061 }
Franz Sales Günter Strasbourg
action filter_type
action union
action find
entity Strasbourg
relation sister city
action find
entity Franz Sales Günter
relation place of birth
type administrative territorial entity
{'OR': [['Strasbourg', 'sister city', {'concept': 'administrative territorial entity'}], ['Franz Sales Günter', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Strasbourg property:sister_city ?j } UNION { resource:Franz_Sales_Günter property:place_of_birth ?j } } . ?j rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q216 Q1022 Q1957 Q515086 Q192807 Q100 Q5776 Q406
SYSTEM
Vilnius, Stuttgart, Vologda, Schelklingen, Ramat Gan, Boston, Bethlehem, Istanbul
Q216 Q1022 Q1957 Q515086 Q192807 Q100 Q5776 Q406
OR((Q6602,P190,c(Q56061)), (Q1448835,P19,c(Q56061)))
action filter_type
action union
action find
entity Q6602
relation P190
action find
entity Q1448835
relation P19
type Q56061
[ANSWERS] are the sister cities of Strasbourg or were Franz Sales Günter born in
{'OR': [['Q6602', 'P190', {'concept': 'Q56061'}], ['Q1448835', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q6602 property:P190 ?j } UNION { resource:Q1448835 property:P19 ?j } } . ?j rdf:type ontology:Q56061 }
Vilnius Stuttgart Vologda Schelklingen Ramat Gan Boston Bethlehem Istanbul
Vilnius, Stuttgart, Vologda, Schelklingen, Ramat Gan, Boston, Bethlehem and Istanbul are the sister cities of Strasbourg or were Franz Sales Günter born in
Vilnius Stuttgart Vologda Schelklingen Ramat Gan Boston Bethlehem Istanbul
action filter_type
action union
action find
entity Strasbourg
relation sister city
action find
entity Franz Sales Günter
relation place of birth
type administrative territorial entity
{'OR': [['Strasbourg', 'sister city', {'concept': 'administrative territorial entity'}], ['Franz Sales Günter', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Strasbourg property:sister_city ?j } UNION { resource:Franz_Sales_Günter property:place_of_birth ?j } } . ?j rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1957
P138
Q355304
USER
Which watercourse is that administrative territory named after ?
(Q1957,P138,c(Q355304))
action filter_type
action find
entity Q1957
relation P138
type Q355304
['Q1957', 'P138', {'concept': 'Q355304'}]
SELECT DISTINCT ?x WHERE { resource:Q1957 property:P138 ?x . ?x rdf:type ontology:Q355304 }
Vologda
action filter_type
action find
entity Vologda
relation named after
type watercourse
['Vologda', 'named after', {'concept': 'watercourse'}]
SELECT DISTINCT ?x WHERE { resource:Vologda property:named_after ?x . ?x rdf:type ontology:watercourse }
[]
watercourse
Clarification for simple ques.
Q515086
SYSTEM
Did you mean Schelklingen ?
Q216 Q1022 Q1957 Q515086 Q192807 Q100 Q5776 Q406
(Q216,P138,c(Q355304)) (Q1022,P138,c(Q355304)) (Q1957,P138,c(Q355304)) (Q515086,P138,c(Q355304)) (Q192807,P138,c(Q355304)) (Q100,P138,c(Q355304)) (Q5776,P138,c(Q355304)) (Q406,P138,c(Q355304))
[ANSWER]
['Q216', 'P138', {'concept': 'Q355304'}] ['Q1022', 'P138', {'concept': 'Q355304'}] ['Q1957', 'P138', {'concept': 'Q355304'}] ['Q515086', 'P138', {'concept': 'Q355304'}] ['Q192807', 'P138', {'concept': 'Q355304'}] ['Q100', 'P138', {'concept': 'Q355304'}] ['Q5776', 'P138', {'concept': 'Q355304'}] ['Q406', 'P138', {'concept': 'Q355304'}]
SELECT DISTINCT ?x WHERE { resource:Q1957 property:P138 ?x . ?x rdf:type ontology:Q355304 }
Vilnius Stuttgart Vologda Schelklingen Ramat Gan Boston Bethlehem Istanbul
Did you mean Schelklingen ?
Schelklingen
['Vilnius', 'named after', {'concept': 'watercourse'}] ['Stuttgart', 'named after', {'concept': 'watercourse'}] ['Vologda', 'named after', {'concept': 'watercourse'}] ['Schelklingen', 'named after', {'concept': 'watercourse'}] ['Ramat Gan', 'named after', {'concept': 'watercourse'}] ['Boston', 'named after', {'concept': 'watercourse'}] ['Bethlehem', 'named after', {'concept': 'watercourse'}] ['Istanbul', 'named after', {'concept': 'watercourse'}]
SELECT DISTINCT ?x WHERE { resource:Vologda property:named_after ?x . ?x rdf:type ontology:watercourse }
[]
Simple Question (Coreferenced)
USER
No, I meant Vologda. Could you tell me the answer for that?
(Q1957,P138,c(Q355304))
Q1957
['Q1957', 'P138', {'concept': 'Q355304'}]
['Vologda', 'named after', {'concept': 'watercourse'}]
[]
Q2160
SYSTEM
Vologda River
Q2160
(Q1957,P138,c(Q355304))
action filter_type
action find
entity Q1957
relation P138
type Q355304
That administrative territory is named after [ANSWER]
['Q1957', 'P138', {'concept': 'Q355304'}]
SELECT DISTINCT ?x WHERE { resource:Q1957 property:P138 ?x . ?x rdf:type ontology:Q355304 }
Vologda River
That administrative territory is named after Vologda River
Vologda River
action filter_type
action find
entity Vologda
relation named after
type watercourse
['Vologda', 'named after', {'concept': 'watercourse'}]
SELECT DISTINCT ?x WHERE { resource:Vologda property:named_after ?x . ?x rdf:type ontology:watercourse }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1794
P840
Q234460
USER
Which text has its narrative set in Frankfurt ?
(c(Q234460),P840,Q1794)
action filter_type
action find_reverse
entity Q1794
relation P840
type Q234460
[{'concept': 'Q234460'}, 'P840', 'Q1794']
SELECT DISTINCT ?x WHERE { ?x property:P840 resource:Q1794 . ?x rdf:type ontology:Q234460 }
Frankfurt
action filter_type
action find_reverse
entity Frankfurt
relation narrative location
type text
[{'concept': 'text'}, 'narrative location', 'Frankfurt']
SELECT DISTINCT ?x WHERE { ?x property:narrative_location resource:Frankfurt . ?x rdf:type ontology:text }
[]
text
Q137052
SYSTEM
Confessions of Felix Krull
Q137052
(c(Q234460),P840,Q1794)
action filter_type
action find_reverse
entity Q1794
relation P840
type Q234460
[ANSWER] has its narrative set in Frankfurt
[{'concept': 'Q234460'}, 'P840', 'Q1794']
SELECT DISTINCT ?x WHERE { ?x property:P840 resource:Q1794 . ?x rdf:type ontology:Q234460 }
Confessions of Felix Krull
Confessions of Felix Krull has its narrative set in Frankfurt
Confessions of Felix Krull
action filter_type
action find_reverse
entity Frankfurt
relation narrative location
type text
[{'concept': 'text'}, 'narrative location', 'Frankfurt']
SELECT DISTINCT ?x WHERE { ?x property:narrative_location resource:Frankfurt . ?x rdf:type ontology:text }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1794
P740
Q43229
USER
Which organizations were formed at that city ?
(c(Q43229),P740,Q137052)
action filter_type
action find_reverse
entity Q1794
relation P740
type Q43229
[{'concept': 'Q43229'}, 'P740', 'Q137052']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q43229 . ?m property:P740 resource:Q1794 }
Frankfurt
action filter_type
action find_reverse
entity Frankfurt
relation location of formation
type organization
[{'concept': 'organization'}, 'location of formation', 'Confessions of Felix Krull']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:organization . ?m property:location_of_formation resource:Frankfurt }
[]
organization
Q157852 Q631220 Q1562727
SYSTEM
Deutsche Börse AG, Braun, Hameg
Q4685846 Q6394100 Q392886 Q631220 Q1562727 Q157852 Q2146961
(c(Q43229),P740,Q137052)
action filter_type
action find_reverse
entity Q1794
relation P740
type Q43229
[ANSWERS] were formed at that city
[{'concept': 'Q43229'}, 'P740', 'Q137052']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q43229 . ?m property:P740 resource:Q1794 }
Adtech Kern AG DQS Braun Hameg Deutsche Börse AG Revolutionärer Kampf
Deutsche Börse AG, Braun and Hameg were formed at that city
Deutsche Börse AG Braun Hameg
action filter_type
action find_reverse
entity Frankfurt
relation location of formation
type organization
[{'concept': 'organization'}, 'location of formation', 'Confessions of Felix Krull']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:organization . ?m property:location_of_formation resource:Frankfurt }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1794
P190
Q1048835 Q486972
USER
How many political territories and human settlements are twin towns of Frankfurt ?
(Q1794,P190,c(Q1048835)) (Q1794,P190,c(Q486972))
action count
action union
action filter_type
action find
entity Q1794
relation P190
type Q1048835
action filter_type
action find
entity Q1794
relation P190
type Q486972
['Q1794', 'P190', {'concept': 'Q1048835'}] ['Q1794', 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?o ) WHERE { ?j rdf:type ?n . VALUES ( ?n ) { ( ontology:Q1048835 ) ( ontology:Q486972 ) } }
Frankfurt
action count
action union
action filter_type
action find
entity Frankfurt
relation sister city
type political territorial entity
action filter_type
action find
entity Frankfurt
relation sister city
type human settlement
['Frankfurt', 'sister city', {'concept': 'political territorial entity'}] ['Frankfurt', 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?o ) WHERE { ?j rdf:type ?n . VALUES ( ?n ) { ( ontology:political_territorial_entity ) ( ontology:human_settlement ) } }
[]
political territorial entity human settlement
SYSTEM
1 political territories and 1 human settlements
Q16572 Q31487
(Q1794,P190,c(Q1048835)) (Q1794,P190,c(Q486972))
action count
action union
action filter_type
action find
entity Q1794
relation P190
type Q1048835
action filter_type
action find
entity Q1794
relation P190
type Q486972
[ANSWER]
['Q1794', 'P190', {'concept': 'Q1048835'}] ['Q1794', 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?o ) WHERE { ?j rdf:type ?n . VALUES ( ?n ) { ( ontology:Q1048835 ) ( ontology:Q486972 ) } }
Guangzhou Kraków
1 political territories and 1 human settlements
action count
action union
action filter_type
action find
entity Frankfurt
relation sister city
type political territorial entity
action filter_type
action find
entity Frankfurt
relation sister city
type human settlement
['Frankfurt', 'sister city', {'concept': 'political territorial entity'}] ['Frankfurt', 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?o ) WHERE { ?j rdf:type ?n . VALUES ( ?n ) { ( ontology:political_territorial_entity ) ( ontology:human_settlement ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q406
P272
Q838948
USER
Which work of art had Istanbul as the production company ?
(c(Q838948),P272,Q406)
action filter_type
action find_reverse
entity Q406
relation P272
type Q838948
[{'concept': 'Q838948'}, 'P272', 'Q406']
SELECT DISTINCT ?b WHERE { ?b property:P272 resource:Q406 . ?b rdf:type ontology:Q838948 }
Istanbul
action filter_type
action find_reverse
entity Istanbul
relation production company
type work of art
[{'concept': 'work of art'}, 'production company', 'Istanbul']
SELECT DISTINCT ?b WHERE { ?b property:production_company resource:Istanbul . ?b rdf:type ontology:work_of_art }
[]
work of art
Q5626835
SYSTEM
Gülen Gözler
Q5626835
(c(Q838948),P272,Q406)
action filter_type
action find_reverse
entity Q406
relation P272
type Q838948
[ANSWER] had Istanbul as the production company
[{'concept': 'Q838948'}, 'P272', 'Q406']
SELECT DISTINCT ?b WHERE { ?b property:P272 resource:Q406 . ?b rdf:type ontology:Q838948 }
Gülen Gözler
Gülen Gözler had Istanbul as the production company
Gülen Gözler
action filter_type
action find_reverse
entity Istanbul
relation production company
type work of art
[{'concept': 'work of art'}, 'production company', 'Istanbul']
SELECT DISTINCT ?b WHERE { ?b property:production_company resource:Istanbul . ?b rdf:type ontology:work_of_art }
[]