Simple Question (Direct)
Simple Question
Q1445748
P937
Q486972
USER
Where did Franz-Alexander Bernhardt work ?
(Q1445748,P937,c(Q486972))
action filter_type
action find
entity Q1445748
relation P937
type Q486972
['Q1445748', 'P937', {'concept': 'Q486972'}]
SELECT DISTINCT ?m WHERE { resource:Q1445748 property:P937 ?m . ?m rdf:type ontology:Q486972 }
Franz-Alexander Bernhardt
action filter_type
action find
entity Franz-Alexander Bernhardt
relation work location
type human settlement
['Franz-Alexander Bernhardt', 'work location', {'concept': 'human settlement'}]
SELECT DISTINCT ?m WHERE { resource:Franz-Alexander_Bernhardt property:work_location ?m . ?m rdf:type ontology:human_settlement }
[]
human settlement
Q1055
SYSTEM
Hamburg
Q1055
(Q1445748,P937,c(Q486972))
action filter_type
action find
entity Q1445748
relation P937
type Q486972
Franz-Alexander Bernhardt worked in [ANSWER]
['Q1445748', 'P937', {'concept': 'Q486972'}]
SELECT DISTINCT ?m WHERE { resource:Q1445748 property:P937 ?m . ?m rdf:type ontology:Q486972 }
Hamburg
Franz-Alexander Bernhardt worked in Hamburg
Hamburg
action filter_type
action find
entity Franz-Alexander Bernhardt
relation work location
type human settlement
['Franz-Alexander Bernhardt', 'work location', {'concept': 'human settlement'}]
SELECT DISTINCT ?m WHERE { resource:Franz-Alexander_Bernhardt property:work_location ?m . ?m rdf:type ontology:human_settlement }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1055
P840
Q838948
USER
Which works of art have a setting location of that human settlement ?
(c(Q838948),P840,Q1055)
action filter_type
action find_reverse
entity Q1055
relation P840
type Q838948
[{'concept': 'Q838948'}, 'P840', 'Q1055']
SELECT DISTINCT ?l WHERE { ?l property:P840 resource:Q1055 . ?l rdf:type ontology:Q838948 }
Hamburg
action filter_type
action find_reverse
entity Hamburg
relation narrative location
type work of art
[{'concept': 'work of art'}, 'narrative location', 'Hamburg']
SELECT DISTINCT ?l WHERE { ?l property:narrative_location resource:Hamburg . ?l rdf:type ontology:work_of_art }
[]
work of art
Q312538 Q325648 Q207916
SYSTEM
Soul Kitchen, Head-On, Tomorrow Never Dies
Q1246351 Q20971240 Q325648 Q881027 Q593772 Q312538 Q494719 Q697115 Q207916 Q2819825
(c(Q838948),P840,Q1055)
action filter_type
action find_reverse
entity Q1055
relation P840
type Q838948
[ANSWERS] have a setting location of that human settlement
[{'concept': 'Q838948'}, 'P840', 'Q1055']
SELECT DISTINCT ?l WHERE { ?l property:P840 resource:Q1055 . ?l rdf:type ontology:Q838948 }
Dorothea's Revenge Taxi Head-On The State I Am In Backbeat Soul Kitchen In July The Wrong Move Tomorrow Never Dies A Most Wanted Man
Soul Kitchen, Head-On and Tomorrow Never Dies have a setting location of that human settlement
Soul Kitchen Head-On Tomorrow Never Dies
action filter_type
action find_reverse
entity Hamburg
relation narrative location
type work of art
[{'concept': 'work of art'}, 'narrative location', 'Hamburg']
SELECT DISTINCT ?l WHERE { ?l property:narrative_location resource:Hamburg . ?l rdf:type ontology:work_of_art }
[]
Clarification
Simple Question|Single Entity|Indirect
Q312538
P162
Q502895
USER
Which people are the producers of that work of art ?
(Q312538,P162,c(Q502895))
action filter_type
action find
entity Q312538
relation P162
type Q502895
['Q312538', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . resource:Q312538 property:P162 ?o }
Soul Kitchen
action filter_type
action find
entity Soul Kitchen
relation producer
type common name
['Soul Kitchen', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . resource:Soul_Kitchen property:producer ?o }
[]
common name
Clarification for simple ques.
Q207916
SYSTEM
Did you mean Tomorrow Never Dies ?
Q312538 Q325648 Q207916
(Q312538,P162,c(Q502895)) (Q325648,P162,c(Q502895)) (Q207916,P162,c(Q502895))
[ANSWER]
['Q312538', 'P162', {'concept': 'Q502895'}] ['Q325648', 'P162', {'concept': 'Q502895'}] ['Q207916', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . resource:Q312538 property:P162 ?o }
Soul Kitchen Head-On Tomorrow Never Dies
Did you mean Tomorrow Never Dies ?
Tomorrow Never Dies
['Soul Kitchen', 'producer', {'concept': 'common name'}] ['Head-On', 'producer', {'concept': 'common name'}] ['Tomorrow Never Dies', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . resource:Soul_Kitchen property:producer ?o }
[]
Simple Question (Coreferenced)
USER
No, I meant Soul Kitchen. Could you tell me the answer for that?
(Q312538,P162,c(Q502895))
Q312538
['Q312538', 'P162', {'concept': 'Q502895'}]
['Soul Kitchen', 'producer', {'concept': 'common name'}]
[]
Q77061 Q1745408
SYSTEM
Fatih Akın, Klaus Maeck
Q77061 Q1745408
(Q312538,P162,c(Q502895))
action filter_type
action find
entity Q312538
relation P162
type Q502895
[ANSWERS] are the producers of that work of art
['Q312538', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . resource:Q312538 property:P162 ?o }
Fatih Akın Klaus Maeck
Fatih Akın and Klaus Maeck are the producers of that work of art
Fatih Akın Klaus Maeck
action filter_type
action find
entity Soul Kitchen
relation producer
type common name
['Soul Kitchen', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . resource:Soul_Kitchen property:producer ?o }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q705871
P162
Q838948
USER
Have The Edge of Heaven been produced by those people ?
(Q705871,P162,Q77061) (Q705871,P162,Q1745408)
action is_in
entity prev_answer
action find
entity Q705871
relation P162
['Q705871', 'P162', 'Q77061'] ['Q705871', 'P162', 'Q1745408']
ASK WHERE { VALUES ( ?m ) { ( resource:Q77061 ) ( resource:Q1745408 ) } . resource:Q705871 property:P162 ?m }
The Edge of Heaven
action is_in
entity prev_answer
action find
entity The Edge of Heaven
relation producer
['The Edge of Heaven', 'producer', 'Fatih Akın'] ['The Edge of Heaven', 'producer', 'Klaus Maeck']
ASK WHERE { VALUES ( ?m ) { ( resource:Fatih_Akın ) ( resource:Klaus_Maeck ) } . resource:The_Edge_of_Heaven property:producer ?m }
[]
work of art
SYSTEM
YES
(Q705871,P162,Q77061) (Q705871,P162,Q1745408)
action is_in
entity prev_answer
action find
entity Q705871
relation P162
[ANSWER]
['Q705871', 'P162', 'Q77061'] ['Q705871', 'P162', 'Q1745408']
ASK WHERE { VALUES ( ?m ) { ( resource:Q77061 ) ( resource:Q1745408 ) } . resource:Q705871 property:P162 ?m }
Yes
action is_in
entity prev_answer
action find
entity The Edge of Heaven
relation producer
['The Edge of Heaven', 'producer', 'Fatih Akın'] ['The Edge of Heaven', 'producer', 'Klaus Maeck']
ASK WHERE { VALUES ( ?m ) { ( resource:Fatih_Akın ) ( resource:Klaus_Maeck ) } . resource:The_Edge_of_Heaven property:producer ?m }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q207916 Q1009125 Q183
P915
Q1048835
USER
Was Tomorrow Never Dies filmed at General Guido Partido and Germany ?
(Q207916,P915,Q1009125) (Q207916,P915,Q183)
action is_in
entity Q207916
action intersection
action find_reverse
entity Q1009125
relation P915
action find_reverse
entity Q183
relation P915
['Q207916', 'P915', 'Q1009125'] ['Q207916', 'P915', 'Q183']
ASK WHERE { resource:Q207916 property:P915 resource:Q1009125 . resource:Q207916 property:P915 resource:Q183 }
Tomorrow Never Dies General Guido Partido Germany
action is_in
entity Tomorrow Never Dies
action intersection
action find_reverse
entity General Guido Partido
relation filming location
action find_reverse
entity Germany
relation filming location
['Tomorrow Never Dies', 'filming location', 'General Guido Partido'] ['Tomorrow Never Dies', 'filming location', 'Germany']
ASK WHERE { resource:Tomorrow_Never_Dies property:filming_location resource:General_Guido_Partido . resource:Tomorrow_Never_Dies property:filming_location resource:Germany }
[]
political territorial entity
SYSTEM
NO and YES respectively
(Q207916,P915,Q1009125) (Q207916,P915,Q183)
action is_in
entity Q207916
action intersection
action find_reverse
entity Q1009125
relation P915
action find_reverse
entity Q183
relation P915
[ANSWER]
['Q207916', 'P915', 'Q1009125'] ['Q207916', 'P915', 'Q183']
ASK WHERE { resource:Q207916 property:P915 resource:Q1009125 . resource:Q207916 property:P915 resource:Q183 }
NO and YES respectively
action is_in
entity Tomorrow Never Dies
action intersection
action find_reverse
entity General Guido Partido
relation filming location
action find_reverse
entity Germany
relation filming location
['Tomorrow Never Dies', 'filming location', 'General Guido Partido'] ['Tomorrow Never Dies', 'filming location', 'Germany']
ASK WHERE { resource:Tomorrow_Never_Dies property:filming_location resource:General_Guido_Partido . resource:Tomorrow_Never_Dies property:filming_location resource:Germany }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q312538 Q3436732 Q2978400
P161
Q502895
USER
Does Robert of Durazzo and Claudia Frittolini star in Soul Kitchen ?
(Q312538,P161,Q3436732) (Q312538,P161,Q2978400)
action is_in
entity Q312538
action intersection
action find_reverse
entity Q3436732
relation P161
action find_reverse
entity Q2978400
relation P161
['Q312538', 'P161', 'Q3436732'] ['Q312538', 'P161', 'Q2978400']
ASK WHERE { resource:Q312538 property:P161 resource:Q3436732 . resource:Q312538 property:P161 resource:Q2978400 }
Soul Kitchen Robert of Durazzo Claudia Frittolini
action is_in
entity Soul Kitchen
action intersection
action find_reverse
entity Robert of Durazzo
relation cast member
action find_reverse
entity Claudia Frittolini
relation cast member
['Soul Kitchen', 'cast member', 'Robert of Durazzo'] ['Soul Kitchen', 'cast member', 'Claudia Frittolini']
ASK WHERE { resource:Soul_Kitchen property:cast_member resource:Robert_of_Durazzo . resource:Soul_Kitchen property:cast_member resource:Claudia_Frittolini }
[]
common name
SYSTEM
NO
(Q312538,P161,Q3436732) (Q312538,P161,Q2978400)
action is_in
entity Q312538
action intersection
action find_reverse
entity Q3436732
relation P161
action find_reverse
entity Q2978400
relation P161
[ANSWER]
['Q312538', 'P161', 'Q3436732'] ['Q312538', 'P161', 'Q2978400']
ASK WHERE { resource:Q312538 property:P161 resource:Q3436732 . resource:Q312538 property:P161 resource:Q2978400 }
No
action is_in
entity Soul Kitchen
action intersection
action find_reverse
entity Robert of Durazzo
relation cast member
action find_reverse
entity Claudia Frittolini
relation cast member
['Soul Kitchen', 'cast member', 'Robert of Durazzo'] ['Soul Kitchen', 'cast member', 'Claudia Frittolini']
ASK WHERE { resource:Soul_Kitchen property:cast_member resource:Robert_of_Durazzo . resource:Soul_Kitchen property:cast_member resource:Claudia_Frittolini }
[]
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 ?i WHERE { { SELECT DISTINCT ( MIN ( ?o ) AS ?z ) { SELECT DISTINCT ?j ( COUNT ( ?h ) AS ?o ) WHERE { ?h property:P1303 ?j . ?j rdf:type ontology:Q34379 . ?h rdf:type ontology:Q502895 } GROUP BY ?j } } . { SELECT DISTINCT ?i ( COUNT ( ?g ) AS ?c ) WHERE { ?g property:P1303 ?i . ?g rdf:type ontology:Q502895 . ?i rdf:type ontology:Q34379 } GROUP BY ?i } . FILTER ( ?c = ?z ) }
action argmin
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MIN ( ?o ) AS ?z ) { SELECT DISTINCT ?j ( COUNT ( ?h ) AS ?o ) WHERE { ?h property:instrument ?j . ?j rdf:type ontology:musical_instrument . ?h rdf:type ontology:common_name } GROUP BY ?j } } . { SELECT DISTINCT ?i ( COUNT ( ?g ) AS ?c ) WHERE { ?g property:instrument ?i . ?g rdf:type ontology:common_name . ?i rdf:type ontology:musical_instrument } GROUP BY ?i } . FILTER ( ?c = ?z ) }
[]
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 ?i WHERE { { SELECT DISTINCT ( MIN ( ?o ) AS ?z ) { SELECT DISTINCT ?j ( COUNT ( ?h ) AS ?o ) WHERE { ?h property:P1303 ?j . ?j rdf:type ontology:Q34379 . ?h rdf:type ontology:Q502895 } GROUP BY ?j } } . { SELECT DISTINCT ?i ( COUNT ( ?g ) AS ?c ) WHERE { ?g property:P1303 ?i . ?g rdf:type ontology:Q502895 . ?i rdf:type ontology:Q34379 } GROUP BY ?i } . FILTER ( ?c = ?z ) }
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 ?i WHERE { { SELECT DISTINCT ( MIN ( ?o ) AS ?z ) { SELECT DISTINCT ?j ( COUNT ( ?h ) AS ?o ) WHERE { ?h property:instrument ?j . ?j rdf:type ontology:musical_instrument . ?h rdf:type ontology:common_name } GROUP BY ?j } } . { SELECT DISTINCT ?i ( COUNT ( ?g ) AS ?c ) WHERE { ?g property:instrument ?i . ?g rdf:type ontology:common_name . ?i rdf:type ontology:musical_instrument } GROUP BY ?i } . FILTER ( ?c = ?z ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by atmost 9211 people ?
(c(Q502895),P1303,c(Q34379))
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 9211
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?w ) WHERE { ?s property:P1303 ?c . ?c rdf:type ontology:Q34379 . ?s rdf:type ontology:Q502895 } GROUP BY ?c } . FILTER ( ?w <= 9211 ) }
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 9211
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?w ) WHERE { ?s property:instrument ?c . ?c rdf:type ontology:musical_instrument . ?s rdf:type ontology:common_name } GROUP BY ?c } . FILTER ( ?w <= 9211 ) }
[]
musical instrument common name
Q1178361 Q81982 Q1759986
SYSTEM
davul, harpsichord, Wurlitzer electric piano
Q80284 Q46185 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q8338 Q120585 Q713298 Q8371 Q8355 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q1444 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q128309 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 9211
[ANSWERS] are played by atmost 9211 people
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?w ) WHERE { ?s property:P1303 ?c . ?c rdf:type ontology:Q34379 . ?s rdf:type ontology:Q502895 } GROUP BY ?c } . FILTER ( ?w <= 9211 ) }
viola bass guitar lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone spoon timpani Wurlitzer electric piano string instrument clavinet trumpet Tsuzumi geomungo cello violin cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano organ cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn drum kit morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
Davul, harpsichord and Wurlitzer electric piano are played by atmost 9211 people
davul harpsichord Wurlitzer electric piano
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 9211
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?w ) WHERE { ?s property:instrument ?c . ?c rdf:type ontology:musical_instrument . ?s rdf:type ontology:common_name } GROUP BY ?c } . FILTER ( ?w <= 9211 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q77061
P1346
Q23719064 Q4220917
USER
How many annual awards or film awards were Fatih Akın decalred as a champion of ?
(c(Q23719064),P1346,Q77061) (c(Q4220917),P1346,Q77061)
action count
action union
action filter_type
action find_reverse
entity Q77061
relation P1346
type Q23719064
action filter_type
action find_reverse
entity Q77061
relation P1346
type Q4220917
[{'concept': 'Q23719064'}, 'P1346', 'Q77061'] [{'concept': 'Q4220917'}, 'P1346', 'Q77061']
SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { { ?r property:P1346 resource:Q77061 . ?r rdf:type ontology:Q4220917 } UNION { ?r property:P1346 resource:Q77061 . ?r rdf:type ontology:Q23719064 } }
Fatih Akın
action count
action union
action filter_type
action find_reverse
entity Fatih Akın
relation winner
type annual award
action filter_type
action find_reverse
entity Fatih Akın
relation winner
type film award
[{'concept': 'annual award'}, 'winner', 'Fatih Akın'] [{'concept': 'film award'}, 'winner', 'Fatih Akın']
SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { { ?r property:winner resource:Fatih_Akın . ?r rdf:type ontology:film_award } UNION { ?r property:winner resource:Fatih_Akın . ?r rdf:type ontology:annual_award } }
[]
annual award film award
SYSTEM
4
Q1204812 Q1204825 Q1377777 Q9256282
(c(Q23719064),P1346,Q77061) (c(Q4220917),P1346,Q77061)
action count
action union
action filter_type
action find_reverse
entity Q77061
relation P1346
type Q23719064
action filter_type
action find_reverse
entity Q77061
relation P1346
type Q4220917
[ANSWER]
[{'concept': 'Q23719064'}, 'P1346', 'Q77061'] [{'concept': 'Q4220917'}, 'P1346', 'Q77061']
SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { { ?r property:P1346 resource:Q77061 . ?r rdf:type ontology:Q4220917 } UNION { ?r property:P1346 resource:Q77061 . ?r rdf:type ontology:Q23719064 } }
German Film Award for Best Direction German Film Award for Best Screenplay European Film Award for Best Screenwriter European Film Award: Audience Award for Best Director
4
action count
action union
action filter_type
action find_reverse
entity Fatih Akın
relation winner
type annual award
action filter_type
action find_reverse
entity Fatih Akın
relation winner
type film award
[{'concept': 'annual award'}, 'winner', 'Fatih Akın'] [{'concept': 'film award'}, 'winner', 'Fatih Akın']
SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { { ?r property:winner resource:Fatih_Akın . ?r rdf:type ontology:film_award } UNION { ?r property:winner resource:Fatih_Akın . ?r rdf:type ontology:annual_award } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q1403437 Q207916
P27 P915
Q1048835
USER
Which political territories were Tomorrow Never Dies filmed at and are the countries of citizenship of Felix Eisengräber ?
AND((Q207916,P915,c(Q1048835)), (Q1403437,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q207916
relation P915
action find
entity Q1403437
relation P27
type Q1048835
{'AND': [['Q207916', 'P915', {'concept': 'Q1048835'}], ['Q1403437', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?r WHERE { resource:Q207916 property:P915 ?r . resource:Q1403437 property:P27 ?r . ?r rdf:type ontology:Q1048835 }
Felix Eisengräber Tomorrow Never Dies
action filter_type
action intersection
action find
entity Tomorrow Never Dies
relation filming location
action find
entity Felix Eisengräber
relation country of citizenship
type political territorial entity
{'AND': [['Tomorrow Never Dies', 'filming location', {'concept': 'political territorial entity'}], ['Felix Eisengräber', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?r WHERE { resource:Tomorrow_Never_Dies property:filming_location ?r . resource:Felix_Eisengräber property:country_of_citizenship ?r . ?r rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
AND((Q207916,P915,c(Q1048835)), (Q1403437,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q207916
relation P915
action find
entity Q1403437
relation P27
type Q1048835
Tomorrow Never Dies were filmed at Nazi [ANSWER] and are the countries of citizenship of Felix Eisengräber
{'AND': [['Q207916', 'P915', {'concept': 'Q1048835'}], ['Q1403437', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?r WHERE { resource:Q207916 property:P915 ?r . resource:Q1403437 property:P27 ?r . ?r rdf:type ontology:Q1048835 }
Germany
Tomorrow Never Dies were filmed at Nazi Germany and are the countries of citizenship of Felix Eisengräber
Germany
action filter_type
action intersection
action find
entity Tomorrow Never Dies
relation filming location
action find
entity Felix Eisengräber
relation country of citizenship
type political territorial entity
{'AND': [['Tomorrow Never Dies', 'filming location', {'concept': 'political territorial entity'}], ['Felix Eisengräber', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?r WHERE { resource:Tomorrow_Never_Dies property:filming_location ?r . resource:Felix_Eisengräber property:country_of_citizenship ?r . ?r rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P1427
Q1048835 Q878123 Q18608583
USER
How many political territories gives the origination point of less number of racings and recurring sporting events than that political territory ?
(c(Q878123)|c(Q18608583),P1427,c(Q1048835))
action count
action less
action union
action find_reverse_tuple_counts
relation P1427
type Q1048835
type Q878123
action find_reverse_tuple_counts
relation P1427
type Q1048835
type Q18608583
action count
action filter_multi_types
action find_reverse
entity Q183
relation P1427
type Q878123
type Q18608583
[[{'concept': 'Q878123'}, {'concept': 'Q18608583'}], 'P1427', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?q ) WHERE { ?u property:P1427 resource:Q183 . { VALUES ( ?f ) { ( ontology:Q18608583 ) ( ontology:Q878123 ) } . ?u rdf:type ?f } } } . FILTER ( ?e < ?q ) . { SELECT DISTINCT ?y ( COUNT ( ?g ) AS ?e ) WHERE { { ?g property:P1427 ?y . ?y rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q878123 } UNION { ?g property:P1427 ?y . ?y rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q18608583 } } GROUP BY ?y } }
action count
action less
action union
action find_reverse_tuple_counts
relation start point
type political territorial entity
type racing
action find_reverse_tuple_counts
relation start point
type political territorial entity
type recurring sporting event
action count
action filter_multi_types
action find_reverse
entity Germany
relation start point
type racing
type recurring sporting event
[[{'concept': 'racing'}, {'concept': 'recurring sporting event'}], 'start point', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?q ) WHERE { ?u property:start_point resource:Germany . { VALUES ( ?f ) { ( ontology:recurring_sporting_event ) ( ontology:racing ) } . ?u rdf:type ?f } } } . FILTER ( ?e < ?q ) . { SELECT DISTINCT ?y ( COUNT ( ?g ) AS ?e ) WHERE { { ?g property:start_point ?y . ?y rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:racing } UNION { ?g property:start_point ?y . ?y rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:recurring_sporting_event } } GROUP BY ?y } }
[]
political territorial entity racing recurring sporting event
SYSTEM
0
(c(Q878123)|c(Q18608583),P1427,c(Q1048835))
action count
action less
action union
action find_reverse_tuple_counts
relation P1427
type Q1048835
type Q878123
action find_reverse_tuple_counts
relation P1427
type Q1048835
type Q18608583
action count
action filter_multi_types
action find_reverse
entity Q183
relation P1427
type Q878123
type Q18608583
[ANSWER]
[[{'concept': 'Q878123'}, {'concept': 'Q18608583'}], 'P1427', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?q ) WHERE { ?u property:P1427 resource:Q183 . { VALUES ( ?f ) { ( ontology:Q18608583 ) ( ontology:Q878123 ) } . ?u rdf:type ?f } } } . FILTER ( ?e < ?q ) . { SELECT DISTINCT ?y ( COUNT ( ?g ) AS ?e ) WHERE { { ?g property:P1427 ?y . ?y rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q878123 } UNION { ?g property:P1427 ?y . ?y rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q18608583 } } GROUP BY ?y } }
0
action count
action less
action union
action find_reverse_tuple_counts
relation start point
type political territorial entity
type racing
action find_reverse_tuple_counts
relation start point
type political territorial entity
type recurring sporting event
action count
action filter_multi_types
action find_reverse
entity Germany
relation start point
type racing
type recurring sporting event
[[{'concept': 'racing'}, {'concept': 'recurring sporting event'}], 'start point', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?q ) WHERE { ?u property:start_point resource:Germany . { VALUES ( ?f ) { ( ontology:recurring_sporting_event ) ( ontology:racing ) } . ?u rdf:type ?f } } } . FILTER ( ?e < ?q ) . { SELECT DISTINCT ?y ( COUNT ( ?g ) AS ?e ) WHERE { { ?g property:start_point ?y . ?y rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:racing } UNION { ?g property:start_point ?y . ?y rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:recurring_sporting_event } } GROUP BY ?y } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q9096471 Q1055
P19 P190
Q56061
USER
Which administrative territories are twin towns of Hamburg or were Xabier González born ?
OR((Q1055,P190,c(Q56061)), (Q9096471,P19,c(Q56061)))
action filter_type
action union
action find
entity Q1055
relation P190
action find
entity Q9096471
relation P19
type Q56061
{'OR': [['Q1055', 'P190', {'concept': 'Q56061'}], ['Q9096471', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q9096471 property:P19 ?c } UNION { resource:Q1055 property:P190 ?c } } . ?c rdf:type ontology:Q56061 }
Xabier González Hamburg
action filter_type
action union
action find
entity Hamburg
relation sister city
action find
entity Xabier González
relation place of birth
type administrative territorial entity
{'OR': [['Hamburg', 'sister city', {'concept': 'administrative territorial entity'}], ['Xabier González', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Xabier_González property:place_of_birth ?c } UNION { resource:Hamburg property:sister_city ?c } } . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q8686 Q6506 Q37100 Q1960 Q99151 Q1297 Q1085 Q208151
SYSTEM
Shanghai, Varna, Auckland, Dar es Salaam, Ourense, Chicago, Prague, León
Q8686 Q6506 Q37100 Q1960 Q99151 Q1297 Q1085 Q208151
OR((Q1055,P190,c(Q56061)), (Q9096471,P19,c(Q56061)))
action filter_type
action union
action find
entity Q1055
relation P190
action find
entity Q9096471
relation P19
type Q56061
[ANSWERS] are twin towns of Hamburg or were Xabier González born
{'OR': [['Q1055', 'P190', {'concept': 'Q56061'}], ['Q9096471', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q9096471 property:P19 ?c } UNION { resource:Q1055 property:P190 ?c } } . ?c rdf:type ontology:Q56061 }
Shanghai Varna Auckland Dar es Salaam Ourense Chicago Prague León
Shanghai, Varna, Auckland, Dar es Salaam, Ourense, Chicago, Prague and León are twin towns of Hamburg or were Xabier González born
Shanghai Varna Auckland Dar es Salaam Ourense Chicago Prague León
action filter_type
action union
action find
entity Hamburg
relation sister city
action find
entity Xabier González
relation place of birth
type administrative territorial entity
{'OR': [['Hamburg', 'sister city', {'concept': 'administrative territorial entity'}], ['Xabier González', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Xabier_González property:place_of_birth ?c } UNION { resource:Hamburg property:sister_city ?c } } . ?c rdf:type ontology:administrative_territorial_entity }
[]