Simple Question (Direct)
Simple Question
Q18129408
P21
Q290
USER
What is the sex of Damir Željko ?
(Q18129408,P21,c(Q290))
action filter_type
action find
entity Q18129408
relation P21
type Q290
['Q18129408', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { resource:Q18129408 property:P21 ?v . ?v rdf:type ontology:Q290 }
Damir Željko
action filter_type
action find
entity Damir Željko
relation gender
type sex
['Damir Željko', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { resource:Damir_Željko property:gender ?v . ?v rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q18129408,P21,c(Q290))
action filter_type
action find
entity Q18129408
relation P21
type Q290
The sex of Damir Željko is the [ANSWER]
['Q18129408', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { resource:Q18129408 property:P21 ?v . ?v rdf:type ontology:Q290 }
male
The sex of Damir Željko is the male
male
action filter_type
action find
entity Damir Željko
relation gender
type sex
['Damir Željko', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { resource:Damir_Željko property:gender ?v . ?v rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18129408
P27
Q15617994
USER
Which administrative territory is Damir Željko a civilian of ?
(Q18129408,P27,c(Q15617994))
action filter_type
action find
entity Q18129408
relation P27
type Q15617994
['Q18129408', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q18129408 property:P27 ?p . ?p rdf:type ontology:Q15617994 }
Damir Željko
action filter_type
action find
entity Damir Željko
relation country of citizenship
type designation for an administrative territorial entity
['Damir Željko', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Damir_Željko property:country_of_citizenship ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q403
SYSTEM
Serbia
Q403
(Q18129408,P27,c(Q15617994))
action filter_type
action find
entity Q18129408
relation P27
type Q15617994
[ANSWER] is Damir Željko a civilian of
['Q18129408', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q18129408 property:P27 ?p . ?p rdf:type ontology:Q15617994 }
Serbia
Serbia is Damir Željko a civilian of
Serbia
action filter_type
action find
entity Damir Željko
relation country of citizenship
type designation for an administrative territorial entity
['Damir Željko', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Damir_Željko property:country_of_citizenship ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have tactful political relations with max number of administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?s ) { SELECT DISTINCT ?r ( COUNT ( ?e ) AS ?x ) WHERE { ?r property:P530 ?e . ?r rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q15617994 } GROUP BY ?r } } . { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?y ) WHERE { ?g rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q15617994 . ?g property:P530 ?i } GROUP BY ?g } . FILTER ( ?y = ?s ) }
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?s ) { SELECT DISTINCT ?r ( COUNT ( ?e ) AS ?x ) WHERE { ?r property:diplomatic_relation ?e . ?r rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?r } } . { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?y ) WHERE { ?g rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g property:diplomatic_relation ?i } GROUP BY ?g } . FILTER ( ?y = ?s ) }
[]
designation for an administrative territorial entity political territorial entity
Q183
SYSTEM
Germany
Q183
(c(Q1048835),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWER] have tactful political relations with max number of administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?s ) { SELECT DISTINCT ?r ( COUNT ( ?e ) AS ?x ) WHERE { ?r property:P530 ?e . ?r rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q15617994 } GROUP BY ?r } } . { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?y ) WHERE { ?g rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q15617994 . ?g property:P530 ?i } GROUP BY ?g } . FILTER ( ?y = ?s ) }
Germany
Germany have tactful political relations with max number of administrative territories
Germany
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?s ) { SELECT DISTINCT ?r ( COUNT ( ?e ) AS ?x ) WHERE { ?r property:diplomatic_relation ?e . ?r rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?r } } . { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?y ) WHERE { ?g rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g property:diplomatic_relation ?i } GROUP BY ?g } . FILTER ( ?y = ?s ) }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q183 Q6080613
P495
Q838948
USER
Does Ishta have that political territory as its place of origin ?
(Q6080613,P495,Q183)
action is_in
entity Q6080613
action find
entity Q183
relation P495
['Q6080613', 'P495', 'Q183']
ASK WHERE { resource:Q183 property:P495 resource:Q6080613 }
Germany Ishta
action is_in
entity Ishta
action find
entity Germany
relation country of origin
['Ishta', 'country of origin', 'Germany']
ASK WHERE { resource:Germany property:country_of_origin resource:Ishta }
[]
work of art
SYSTEM
NO
(Q6080613,P495,Q183)
action is_in
entity Q6080613
action find
entity Q183
relation P495
[ANSWER]
['Q6080613', 'P495', 'Q183']
ASK WHERE { resource:Q183 property:P495 resource:Q6080613 }
No
action is_in
entity Ishta
action find
entity Germany
relation country of origin
['Ishta', 'country of origin', 'Germany']
ASK WHERE { resource:Germany property:country_of_origin resource:Ishta }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q183
P1376
Q56061
USER
Which administrative territories are center of administration for Germany ?
(c(Q56061),P1376,Q183)
action filter_type
action find_reverse
entity Q183
relation P1376
type Q56061
[{'concept': 'Q56061'}, 'P1376', 'Q183']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q56061 . ?z property:P1376 resource:Q183 }
Germany
action filter_type
action find_reverse
entity Germany
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Germany']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:administrative_territorial_entity . ?z property:capital_of resource:Germany }
[]
administrative territorial entity
Q64 Q586
SYSTEM
Berlin, Bonn
Q64 Q586
(c(Q56061),P1376,Q183)
action filter_type
action find_reverse
entity Q183
relation P1376
type Q56061
[ANSWERS] are center of administration for Germany
[{'concept': 'Q56061'}, 'P1376', 'Q183']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q56061 . ?z property:P1376 resource:Q183 }
Berlin Bonn
Berlin and Bonn are center of administration for Germany
Berlin Bonn
action filter_type
action find_reverse
entity Germany
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Germany']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:administrative_territorial_entity . ?z property:capital_of resource:Germany }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q64
P47
Q1048835
USER
Who share the border with Berlin ?
(Q64,P47,c(Q1048835))
action filter_type
action find
entity Q64
relation P47
type Q1048835
['Q64', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { resource:Q64 property:P47 ?w . ?w rdf:type ontology:Q1048835 }
Berlin
action filter_type
action find
entity Berlin
relation shares border with
type political territorial entity
['Berlin', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Berlin property:shares_border_with ?w . ?w rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q6142 Q6146 Q6139
SYSTEM
Potsdam-Mittelmark, Teltow-Fläming, Havelland
Q6173 Q6139 Q6142 Q6115 Q6181 Q6146 Q6178 Q6119
(Q64,P47,c(Q1048835))
action filter_type
action find
entity Q64
relation P47
type Q1048835
[ANSWERS] share the border with Berlin
['Q64', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { resource:Q64 property:P47 ?w . ?w rdf:type ontology:Q1048835 }
Dahme-Spreewald Havelland Potsdam-Mittelmark Barnim Märkisch-Oderland Teltow-Fläming Oder-Spree Oberhavel
Potsdam-Mittelmark, Teltow-Fläming and Havelland share the border with Berlin
Potsdam-Mittelmark Teltow-Fläming Havelland
action filter_type
action find
entity Berlin
relation shares border with
type political territorial entity
['Berlin', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Berlin property:shares_border_with ?w . ?w rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q6142 Q6146 Q6139
P47
Q1048835
USER
Which political territories are bordered by those ones ?
(Q6142,P47,c(Q1048835)) (Q6146,P47,c(Q1048835)) (Q6139,P47,c(Q1048835))
action filter_type
action find
entity prev_answer
relation P47
type Q1048835
['Q6142', 'P47', {'concept': 'Q1048835'}] ['Q6146', 'P47', {'concept': 'Q1048835'}] ['Q6139', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q1048835 . ?o property:P47 ?e . VALUES ( ?o ) { ( resource:Q6173 ) ( resource:Q6139 ) ( resource:Q6142 ) } }
Potsdam-Mittelmark Teltow-Fläming Havelland
action filter_type
action find
entity prev_answer
relation shares border with
type political territorial entity
['Potsdam-Mittelmark', 'shares border with', {'concept': 'political territorial entity'}] ['Teltow-Fläming', 'shares border with', {'concept': 'political territorial entity'}] ['Havelland', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:political_territorial_entity . ?o property:shares_border_with ?e . VALUES ( ?o ) { ( resource:Dahme-Spreewald ) ( resource:Havelland ) ( resource:Potsdam-Mittelmark ) } }
[]
political territorial entity
Q6142 Q6142 Q6146
SYSTEM
Teltow-Fläming for 3rd, Potsdam-Mittelmark for 1st, 2nd
Q6139 Q6071 Q6075 Q6146 Q6068 Q6075 Q460149 Q6173 Q6152 Q6142 Q6125 Q6068 Q6057 Q6119 Q6142
(Q6142,P47,c(Q1048835)) (Q6146,P47,c(Q1048835)) (Q6139,P47,c(Q1048835))
action filter_type
action find
entity prev_answer
relation P47
type Q1048835
[ANSWERS]
['Q6142', 'P47', {'concept': 'Q1048835'}] ['Q6146', 'P47', {'concept': 'Q1048835'}] ['Q6139', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q1048835 . ?o property:P47 ?e . VALUES ( ?o ) { ( resource:Q6173 ) ( resource:Q6139 ) ( resource:Q6142 ) } }
Havelland Anhalt-Bitterfeld Wittenberg Teltow-Fläming Jerichower Land Wittenberg Schenkenländchen Dahme-Spreewald Elbe-Elster Potsdam-Mittelmark Ostprignitz-Ruppin Jerichower Land Stendal Oberhavel Potsdam-Mittelmark
Potsdam-Mittelmark, Potsdam-Mittelmark and Teltow-Fläming are bordered by those ones
Potsdam-Mittelmark Potsdam-Mittelmark Teltow-Fläming
action filter_type
action find
entity prev_answer
relation shares border with
type political territorial entity
['Potsdam-Mittelmark', 'shares border with', {'concept': 'political territorial entity'}] ['Teltow-Fläming', 'shares border with', {'concept': 'political territorial entity'}] ['Havelland', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:political_territorial_entity . ?o property:shares_border_with ?e . VALUES ( ?o ) { ( resource:Dahme-Spreewald ) ( resource:Havelland ) ( resource:Potsdam-Mittelmark ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q64
P840
Q15416
USER
Which television programs have their narrative set in Berlin ?
(c(Q15416),P840,Q64)
action filter_type
action find_reverse
entity Q64
relation P840
type Q15416
[{'concept': 'Q15416'}, 'P840', 'Q64']
SELECT DISTINCT ?n WHERE { ?n property:P840 resource:Q64 . ?n rdf:type ontology:Q15416 }
Berlin
action filter_type
action find_reverse
entity Berlin
relation narrative location
type television program
[{'concept': 'television program'}, 'narrative location', 'Berlin']
SELECT DISTINCT ?n WHERE { ?n property:narrative_location resource:Berlin . ?n rdf:type ontology:television_program }
[]
television program
Q12299868 Q1962376 Q705694
SYSTEM
1864, Despair, Berlin Alexanderplatz
Q18620282 Q1659301 Q1696897 Q7749925 Q228063 Q873985 Q878699 Q829523 Q29327 Q1918048 Q705694 Q12299868 Q7743138 Q1962376 Q462031 Q706367 Q980841 Q451575 Q23308275 Q970042 Q529353 Q4733310 Q1194148 Q832471 Q1167853 Q1216561 Q1281134
(c(Q15416),P840,Q64)
action filter_type
action find_reverse
entity Q64
relation P840
type Q15416
[ANSWERS] have their narrative set in Berlin
[{'concept': 'Q15416'}, 'P840', 'Q64']
SELECT DISTINCT ?n WHERE { ?n property:P840 resource:Q64 . ?n rdf:type ontology:Q15416 }
The Limits of Patience Im Angesicht des Verbrechens Johanna The Man Who Crossed Hitler Blackout Westler Liebling Kreuzberg The Plot to Kill Hitler The Tunnel Meine schönsten Jahre Berlin Alexanderplatz 1864 The Jesse Owens Story Despair Stauffenberg Conspiracy Christopher and His Kind Am grünen Strand der Spree Ku’damm 56 Speer und Er The Bunker Alltag Der Hauptmann von Köpenick The Wannsee Conference The Final Game Die Stunde der Offiziere Forbidden
1864, Despair and Berlin Alexanderplatz have their narrative set in Berlin
1864 Despair Berlin Alexanderplatz
action filter_type
action find_reverse
entity Berlin
relation narrative location
type television program
[{'concept': 'television program'}, 'narrative location', 'Berlin']
SELECT DISTINCT ?n WHERE { ?n property:narrative_location resource:Berlin . ?n rdf:type ontology:television_program }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q12299868 Q1962376 Q705694
P58
Q502895
USER
Who were the screenwriters for those television programs ?
(Q12299868,P58,c(Q502895)) (Q1962376,P58,c(Q502895)) (Q705694,P58,c(Q502895))
action filter_type
action find
entity prev_answer
relation P58
type Q502895
['Q12299868', 'P58', {'concept': 'Q502895'}] ['Q1962376', 'P58', {'concept': 'Q502895'}] ['Q705694', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { ?n property:P58 ?o . ?o rdf:type ontology:Q502895 . VALUES ( ?n ) { ( resource:Q18620282 ) ( resource:Q1659301 ) ( resource:Q1696897 ) } }
1864 Despair Berlin Alexanderplatz
action filter_type
action find
entity prev_answer
relation screenwriter
type common name
['1864', 'screenwriter', {'concept': 'common name'}] ['Despair', 'screenwriter', {'concept': 'common name'}] ['Berlin Alexanderplatz', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { ?n property:screenwriter ?o . ?o rdf:type ontology:common_name . VALUES ( ?n ) { ( resource:The_Limits_of_Patience ) ( resource:Im_Angesicht_des_Verbrechens ) ( resource:Johanna ) } }
[]
common name
Q36591 Q44426 Q294773
SYSTEM
Vladimir Nabokov, Rainer Werner Fassbinder, Tom Stoppard
Q1387470 Q294773 Q36591 Q44426
(Q12299868,P58,c(Q502895)) (Q1962376,P58,c(Q502895)) (Q705694,P58,c(Q502895))
action filter_type
action find
entity prev_answer
relation P58
type Q502895
The screenwriters for those television programs were [ANSWERS]
['Q12299868', 'P58', {'concept': 'Q502895'}] ['Q1962376', 'P58', {'concept': 'Q502895'}] ['Q705694', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { ?n property:P58 ?o . ?o rdf:type ontology:Q502895 . VALUES ( ?n ) { ( resource:Q18620282 ) ( resource:Q1659301 ) ( resource:Q1696897 ) } }
Ole Bornedal Tom Stoppard Vladimir Nabokov Rainer Werner Fassbinder
The screenwriters for those television programs were Vladimir Nabokov, Rainer Werner Fassbinder and Tom Stoppard
Vladimir Nabokov Rainer Werner Fassbinder Tom Stoppard
action filter_type
action find
entity prev_answer
relation screenwriter
type common name
['1864', 'screenwriter', {'concept': 'common name'}] ['Despair', 'screenwriter', {'concept': 'common name'}] ['Berlin Alexanderplatz', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { ?n property:screenwriter ?o . ?o rdf:type ontology:common_name . VALUES ( ?n ) { ( resource:The_Limits_of_Patience ) ( resource:Im_Angesicht_des_Verbrechens ) ( resource:Johanna ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q64
P276
Q1190554
USER
Which events are located at Berlin ?
(c(Q1190554),P276,Q64)
action filter_type
action find_reverse
entity Q64
relation P276
type Q1190554
[{'concept': 'Q1190554'}, 'P276', 'Q64']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q1190554 . ?z property:P276 resource:Q64 }
Berlin
action filter_type
action find_reverse
entity Berlin
relation location
type event
[{'concept': 'event'}, 'location', 'Berlin']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:event . ?z property:location resource:Berlin }
[]
event
Q23725830 Q154182 Q167143
SYSTEM
Nuit debout, Battle of Berlin, Raid on Berlin
Q21968176 Q23725830 Q647827 Q154182 Q167143 Q713400
(c(Q1190554),P276,Q64)
action filter_type
action find_reverse
entity Q64
relation P276
type Q1190554
[ANSWERS] are located at Berlin
[{'concept': 'Q1190554'}, 'P276', 'Q64']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q1190554 . ?z property:P276 resource:Q64 }
ADAC-Ball Berlin Nuit debout Battle of Dennewitz Battle of Berlin Raid on Berlin Battle in Berlin
Nuit debout, Battle of Berlin and Raid on Berlin are located at Berlin
Nuit debout Battle of Berlin Raid on Berlin
action filter_type
action find_reverse
entity Berlin
relation location
type event
[{'concept': 'event'}, 'location', 'Berlin']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:event . ?z property:location resource:Berlin }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q64
P108
Q502895
USER
What are the name of people who works for that administrative territory ?
(c(Q502895),P108,Q23725830) (c(Q502895),P108,Q154182) (c(Q502895),P108,Q167143)
action filter_type
action find_reverse
entity Q64
relation P108
type Q502895
[{'concept': 'Q502895'}, 'P108', 'Q23725830'] [{'concept': 'Q502895'}, 'P108', 'Q154182'] [{'concept': 'Q502895'}, 'P108', 'Q167143']
SELECT DISTINCT ?k WHERE { ?k property:P108 resource:Q64 . ?k rdf:type ontology:Q502895 }
Berlin
action filter_type
action find_reverse
entity Berlin
relation employer
type common name
[{'concept': 'common name'}, 'employer', 'Nuit debout'] [{'concept': 'common name'}, 'employer', 'Battle of Berlin'] [{'concept': 'common name'}, 'employer', 'Raid on Berlin']
SELECT DISTINCT ?k WHERE { ?k property:employer resource:Berlin . ?k rdf:type ontology:common_name }
[]
common name
Q2514 Q1528191
SYSTEM
Willy Brandt, Matthias Wemhoff
Q2514 Q1528191
(c(Q502895),P108,Q23725830) (c(Q502895),P108,Q154182) (c(Q502895),P108,Q167143)
action filter_type
action find_reverse
entity Q64
relation P108
type Q502895
The name of people works for that administrative territory are [ANSWERS]
[{'concept': 'Q502895'}, 'P108', 'Q23725830'] [{'concept': 'Q502895'}, 'P108', 'Q154182'] [{'concept': 'Q502895'}, 'P108', 'Q167143']
SELECT DISTINCT ?k WHERE { ?k property:P108 resource:Q64 . ?k rdf:type ontology:Q502895 }
Willy Brandt Matthias Wemhoff
The name of people works for that administrative territory are Willy Brandt and Matthias Wemhoff
Willy Brandt Matthias Wemhoff
action filter_type
action find_reverse
entity Berlin
relation employer
type common name
[{'concept': 'common name'}, 'employer', 'Nuit debout'] [{'concept': 'common name'}, 'employer', 'Battle of Berlin'] [{'concept': 'common name'}, 'employer', 'Raid on Berlin']
SELECT DISTINCT ?k WHERE { ?k property:employer resource:Berlin . ?k rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments can exactly 5 people perform with ?
(c(Q502895),P1303,c(Q34379))
action equal
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 5
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?o ) AS ?k ) WHERE { ?o property:P1303 ?u . ?u rdf:type ontology:Q34379 . ?o rdf:type ontology:Q502895 } GROUP BY ?u } . FILTER ( ?k = 5 ) }
action equal
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 5
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?o ) AS ?k ) WHERE { ?o property:instrument ?u . ?u rdf:type ontology:musical_instrument . ?o rdf:type ontology:common_name } GROUP BY ?u } . FILTER ( ?k = 5 ) }
[]
musical instrument common name
Q213461 Q213100
SYSTEM
harmonium, tabla
Q213461 Q213100
(c(Q502895),P1303,c(Q34379))
action equal
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 5
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?o ) AS ?k ) WHERE { ?o property:P1303 ?u . ?u rdf:type ontology:Q34379 . ?o rdf:type ontology:Q502895 } GROUP BY ?u } . FILTER ( ?k = 5 ) }
harmonium tabla
Which musical instruments can exactly 5 people perform with
harmonium tabla
action equal
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 5
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?o ) AS ?k ) WHERE { ?o property:instrument ?u . ?u rdf:type ontology:musical_instrument . ?o rdf:type ontology:common_name } GROUP BY ?u } . FILTER ( ?k = 5 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments can min number of people perform with ?
(c(Q502895),P1303,Q3623688)
action argmin
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MIN ( ?h ) AS ?d ) { SELECT DISTINCT ?l ( COUNT ( ?n ) AS ?h ) WHERE { ?n property:P1303 ?l . ?l rdf:type ontology:Q34379 . ?n rdf:type ontology:Q502895 } GROUP BY ?l } } . { SELECT DISTINCT ?k ( COUNT ( ?s ) AS ?a ) WHERE { ?s rdf:type ontology:Q502895 . ?k rdf:type ontology:Q34379 . ?s property:P1303 ?k } GROUP BY ?k } . FILTER ( ?a = ?d ) }
action argmin
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MIN ( ?h ) AS ?d ) { SELECT DISTINCT ?l ( COUNT ( ?n ) AS ?h ) WHERE { ?n property:instrument ?l . ?l rdf:type ontology:musical_instrument . ?n rdf:type ontology:common_name } GROUP BY ?l } } . { SELECT DISTINCT ?k ( COUNT ( ?s ) AS ?a ) WHERE { ?s rdf:type ontology:common_name . ?k rdf:type ontology:musical_instrument . ?s property:instrument ?k } GROUP BY ?k } . FILTER ( ?a = ?d ) }
[]
musical instrument common name
Q1879664 Q748455 Q173453
SYSTEM
spoon, cajón, wind instrument
Q1879664 Q748455 Q173453
(c(Q502895),P1303,Q3623688)
action argmin
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
Min number of people can perform the [ANSWERS]
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MIN ( ?h ) AS ?d ) { SELECT DISTINCT ?l ( COUNT ( ?n ) AS ?h ) WHERE { ?n property:P1303 ?l . ?l rdf:type ontology:Q34379 . ?n rdf:type ontology:Q502895 } GROUP BY ?l } } . { SELECT DISTINCT ?k ( COUNT ( ?s ) AS ?a ) WHERE { ?s rdf:type ontology:Q502895 . ?k rdf:type ontology:Q34379 . ?s property:P1303 ?k } GROUP BY ?k } . FILTER ( ?a = ?d ) }
spoon cajón wind instrument
Min number of people can perform the spoon, cajón and wind instrument
spoon cajón wind instrument
action argmin
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MIN ( ?h ) AS ?d ) { SELECT DISTINCT ?l ( COUNT ( ?n ) AS ?h ) WHERE { ?n property:instrument ?l . ?l rdf:type ontology:musical_instrument . ?n rdf:type ontology:common_name } GROUP BY ?l } } . { SELECT DISTINCT ?k ( COUNT ( ?s ) AS ?a ) WHERE { ?s rdf:type ontology:common_name . ?k rdf:type ontology:musical_instrument . ?s property:instrument ?k } GROUP BY ?k } . FILTER ( ?a = ?d ) }
[]