Simple Question (Direct)
Simple Question
Q3939108
P21
Q290
USER
Which sex does Roberto Rolla have ?
(Q3939108,P21,c(Q290))
action filter_type
action find
entity Q3939108
relation P21
type Q290
['Q3939108', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q3939108 property:P21 ?h . ?h rdf:type ontology:Q290 }
Roberto Rolla
action filter_type
action find
entity Roberto Rolla
relation gender
type sex
['Roberto Rolla', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Roberto_Rolla property:gender ?h . ?h rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3939108,P21,c(Q290))
action filter_type
action find
entity Q3939108
relation P21
type Q290
Roberto Rolla has a [ANSWER]
['Q3939108', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q3939108 property:P21 ?h . ?h rdf:type ontology:Q290 }
male
Roberto Rolla has a male
male
action filter_type
action find
entity Roberto Rolla
relation gender
type sex
['Roberto Rolla', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Roberto_Rolla property:gender ?h . ?h rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3939108
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Roberto Rolla ?
(Q3939108,P27,c(Q15617994))
action filter_type
action find
entity Q3939108
relation P27
type Q15617994
['Q3939108', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q3939108 property:P27 ?b . ?b rdf:type ontology:Q15617994 }
Roberto Rolla
action filter_type
action find
entity Roberto Rolla
relation country of citizenship
type designation for an administrative territorial entity
['Roberto Rolla', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Roberto_Rolla property:country_of_citizenship ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q3939108,P27,c(Q15617994))
action filter_type
action find
entity Q3939108
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Roberto Rolla
['Q3939108', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q3939108 property:P27 ?b . ?b rdf:type ontology:Q15617994 }
Italy
Italy is the country of citizenship of Roberto Rolla
Italy
action filter_type
action find
entity Roberto Rolla
relation country of citizenship
type designation for an administrative territorial entity
['Roberto Rolla', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Roberto_Rolla property:country_of_citizenship ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q38 Q35
P530
Q1048835
USER
How many political territories holds diplomatic relationship with Italy and Denmark ?
(Q38,P530,c(Q1048835)) (Q35,P530,c(Q1048835))
action count
action intersection
action filter_type
action find
entity Q38
relation P530
type Q1048835
action filter_type
action find
entity Q35
relation P530
type Q1048835
['Q38', 'P530', {'concept': 'Q1048835'}] ['Q35', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) WHERE { resource:Q38 property:P530 ?a . ?a rdf:type ontology:Q1048835 . resource:Q35 property:P530 ?a . ?a rdf:type ontology:Q1048835 }
Italy Denmark
action count
action intersection
action filter_type
action find
entity Italy
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Denmark
relation diplomatic relation
type political territorial entity
['Italy', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Denmark', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) WHERE { resource:Italy property:diplomatic_relation ?a . ?a rdf:type ontology:political_territorial_entity . resource:Denmark property:diplomatic_relation ?a . ?a rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
3
Q408 Q16 Q183
(Q38,P530,c(Q1048835)) (Q35,P530,c(Q1048835))
action count
action intersection
action filter_type
action find
entity Q38
relation P530
type Q1048835
action filter_type
action find
entity Q35
relation P530
type Q1048835
[ANSWER]
['Q38', 'P530', {'concept': 'Q1048835'}] ['Q35', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) WHERE { resource:Q38 property:P530 ?a . ?a rdf:type ontology:Q1048835 . resource:Q35 property:P530 ?a . ?a rdf:type ontology:Q1048835 }
Australia Canada Germany
3
action count
action intersection
action filter_type
action find
entity Italy
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Denmark
relation diplomatic relation
type political territorial entity
['Italy', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Denmark', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) WHERE { resource:Italy property:diplomatic_relation ?a . ?a rdf:type ontology:political_territorial_entity . resource:Denmark property:diplomatic_relation ?a . ?a rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q38
P915
Q201658
USER
Which film genre was filmed at Italy ?
(c(Q201658),P915,Q38)
action filter_type
action find_reverse
entity Q38
relation P915
type Q201658
[{'concept': 'Q201658'}, 'P915', 'Q38']
SELECT DISTINCT ?c WHERE { ?c property:P915 resource:Q38 . ?c rdf:type ontology:Q201658 }
Italy
action filter_type
action find_reverse
entity Italy
relation filming location
type film genre
[{'concept': 'film genre'}, 'filming location', 'Italy']
SELECT DISTINCT ?c WHERE { ?c property:filming_location resource:Italy . ?c rdf:type ontology:film_genre }
[]
film genre
Q27789656
SYSTEM
Nostalgija vampira
Q27789656
(c(Q201658),P915,Q38)
action filter_type
action find_reverse
entity Q38
relation P915
type Q201658
[ANSWER] was filmed at Italy
[{'concept': 'Q201658'}, 'P915', 'Q38']
SELECT DISTINCT ?c WHERE { ?c property:P915 resource:Q38 . ?c rdf:type ontology:Q201658 }
Nostalgija vampira
Nostalgija vampira was filmed at Italy
Nostalgija vampira
action filter_type
action find_reverse
entity Italy
relation filming location
type film genre
[{'concept': 'film genre'}, 'filming location', 'Italy']
SELECT DISTINCT ?c WHERE { ?c property:filming_location resource:Italy . ?c rdf:type ontology:film_genre }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q27789656
P57
Q502895
USER
Which person directed that film genre ?
(Q27789656,P57,c(Q502895))
action filter_type
action find
entity Q27789656
relation P57
type Q502895
['Q27789656', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q27789656 property:P57 ?j . ?j rdf:type ontology:Q502895 }
Nostalgija vampira
action filter_type
action find
entity Nostalgija vampira
relation director
type common name
['Nostalgija vampira', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Nostalgija_vampira property:director ?j . ?j rdf:type ontology:common_name }
[]
common name
Q26944923
SYSTEM
Krsto Škanata
Q26944923
(Q27789656,P57,c(Q502895))
action filter_type
action find
entity Q27789656
relation P57
type Q502895
[ANSWER] directed that film genre
['Q27789656', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q27789656 property:P57 ?j . ?j rdf:type ontology:Q502895 }
Krsto Škanata
Krsto Škanata directed that film genre
Krsto Škanata
action filter_type
action find
entity Nostalgija vampira
relation director
type common name
['Nostalgija vampira', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Nostalgija_vampira property:director ?j . ?j rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3937203 Q27789656
P57 P58
Q502895
USER
Which people served as the directed of Nostalgija vampira or wrote the script for Rita, la figlia americana ?
OR((Q27789656,P57,c(Q502895)), (Q3937203,P58,c(Q502895)))
action filter_type
action union
action find
entity Q27789656
relation P57
action find
entity Q3937203
relation P58
type Q502895
{'OR': [['Q27789656', 'P57', {'concept': 'Q502895'}], ['Q3937203', 'P58', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q27789656 property:P57 ?k } UNION { resource:Q3937203 property:P58 ?k } } . ?k rdf:type ontology:Q502895 }
Rita, la figlia americana Nostalgija vampira
action filter_type
action union
action find
entity Nostalgija vampira
relation director
action find
entity Rita, la figlia americana
relation screenwriter
type common name
{'OR': [['Nostalgija vampira', 'director', {'concept': 'common name'}], ['Rita, la figlia americana', 'screenwriter', {'concept': 'common name'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Nostalgija_vampira property:director ?k } UNION { resource:Rita,_la_figlia_americana property:screenwriter ?k } } . ?k rdf:type ontology:common_name }
[]
common name
Q26944923 Q4002850 Q2092907 Q993165 Q55454 Q1526178 Q1589490
SYSTEM
Krsto Škanata, Ugo Moretti, Piero Vivarelli, Bruno Corbucci, Ugo Gregoretti, Giovanni Grimaldi, Tito Carpi
Q26944923 Q4002850 Q2092907 Q993165 Q55454 Q1526178 Q1589490
OR((Q27789656,P57,c(Q502895)), (Q3937203,P58,c(Q502895)))
action filter_type
action union
action find
entity Q27789656
relation P57
action find
entity Q3937203
relation P58
type Q502895
[ANSWERS] served as the directed of Nostalgija vampira or wrote the script for Rita, la figlia americana
{'OR': [['Q27789656', 'P57', {'concept': 'Q502895'}], ['Q3937203', 'P58', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q27789656 property:P57 ?k } UNION { resource:Q3937203 property:P58 ?k } } . ?k rdf:type ontology:Q502895 }
Krsto Škanata Ugo Moretti Piero Vivarelli Bruno Corbucci Ugo Gregoretti Giovanni Grimaldi Tito Carpi
Krsto Škanata, Ugo Moretti, Piero Vivarelli, Bruno Corbucci, Ugo Gregoretti, Giovanni Grimaldi and Tito Carpi served as the directed of Nostalgija vampira or wrote the script for Rita, la figlia americana
Krsto Škanata Ugo Moretti Piero Vivarelli Bruno Corbucci Ugo Gregoretti Giovanni Grimaldi Tito Carpi
action filter_type
action union
action find
entity Nostalgija vampira
relation director
action find
entity Rita, la figlia americana
relation screenwriter
type common name
{'OR': [['Nostalgija vampira', 'director', {'concept': 'common name'}], ['Rita, la figlia americana', 'screenwriter', {'concept': 'common name'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Nostalgija_vampira property:director ?k } UNION { resource:Rita,_la_figlia_americana property:screenwriter ?k } } . ?k rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2092907
P161
Q838948
USER
Which works of art do that person star in ?
(c(Q838948),P161,Q2092907)
action filter_type
action find_reverse
entity Q2092907
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q2092907']
SELECT DISTINCT ?p WHERE { ?p property:P161 resource:Q2092907 . ?p rdf:type ontology:Q838948 }
Piero Vivarelli
action filter_type
action find_reverse
entity Piero Vivarelli
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Piero Vivarelli']
SELECT DISTINCT ?p WHERE { ?p property:cast_member resource:Piero_Vivarelli . ?p rdf:type ontology:work_of_art }
[]
work of art
Clarification for simple ques.
Q26944923
SYSTEM
Did you mean Krsto Škanata ?
Q26944923 Q4002850 Q2092907 Q993165 Q55454 Q1526178 Q1589490
(c(Q838948),P161,Q26944923) (c(Q838948),P161,Q4002850) (c(Q838948),P161,Q2092907) (c(Q838948),P161,Q993165) (c(Q838948),P161,Q55454) (c(Q838948),P161,Q1526178) (c(Q838948),P161,Q1589490)
[ANSWER]
[{'concept': 'Q838948'}, 'P161', 'Q26944923'] [{'concept': 'Q838948'}, 'P161', 'Q4002850'] [{'concept': 'Q838948'}, 'P161', 'Q2092907'] [{'concept': 'Q838948'}, 'P161', 'Q993165'] [{'concept': 'Q838948'}, 'P161', 'Q55454'] [{'concept': 'Q838948'}, 'P161', 'Q1526178'] [{'concept': 'Q838948'}, 'P161', 'Q1589490']
SELECT DISTINCT ?p WHERE { ?p property:P161 resource:Q2092907 . ?p rdf:type ontology:Q838948 }
Krsto Škanata Ugo Moretti Piero Vivarelli Bruno Corbucci Ugo Gregoretti Giovanni Grimaldi Tito Carpi
Did you mean Krsto Škanata ?
Krsto Škanata
[{'concept': 'work of art'}, 'cast member', 'Krsto Škanata'] [{'concept': 'work of art'}, 'cast member', 'Ugo Moretti'] [{'concept': 'work of art'}, 'cast member', 'Piero Vivarelli'] [{'concept': 'work of art'}, 'cast member', 'Bruno Corbucci'] [{'concept': 'work of art'}, 'cast member', 'Ugo Gregoretti'] [{'concept': 'work of art'}, 'cast member', 'Giovanni Grimaldi'] [{'concept': 'work of art'}, 'cast member', 'Tito Carpi']
SELECT DISTINCT ?p WHERE { ?p property:cast_member resource:Piero_Vivarelli . ?p rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
USER
No, I meant Piero Vivarelli. Could you tell me the answer for that?
(c(Q838948),P161,Q2092907)
Q2092907
[{'concept': 'Q838948'}, 'P161', 'Q2092907']
[{'concept': 'work of art'}, 'cast member', 'Piero Vivarelli']
[]
Q3950747 Q4000704 Q672656
SYSTEM
Satanik, On Tour, State buoni se potete
Q3950747 Q4000704 Q672656
(c(Q838948),P161,Q2092907)
action filter_type
action find_reverse
entity Q2092907
relation P161
type Q838948
That person star [ANSWERS]
[{'concept': 'Q838948'}, 'P161', 'Q2092907']
SELECT DISTINCT ?p WHERE { ?p property:P161 resource:Q2092907 . ?p rdf:type ontology:Q838948 }
Satanik On Tour State buoni se potete
That person star Satanik, On Tour and State buoni se potete
Satanik On Tour State buoni se potete
action filter_type
action find_reverse
entity Piero Vivarelli
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Piero Vivarelli']
SELECT DISTINCT ?p WHERE { ?p property:cast_member resource:Piero_Vivarelli . ?p rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q3950747 Q4000704 Q672656
P57
Q502895
USER
Who were the director of Satanik, On Tour and State buoni se potete ?
(Q3950747,P57,c(Q502895)) (Q4000704,P57,c(Q502895)) (Q672656,P57,c(Q502895))
action union
action filter_type
action find
entity Q3950747
relation P57
type Q502895
action filter_type
action find
entity Q4000704
relation P57
type Q502895
action filter_type
action find
entity Q672656
relation P57
type Q502895
['Q3950747', 'P57', {'concept': 'Q502895'}] ['Q4000704', 'P57', {'concept': 'Q502895'}] ['Q672656', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { { resource:Q4000704 property:P57 ?y . ?y rdf:type ontology:Q502895 } UNION { resource:Q3950747 property:P57 ?y . ?y rdf:type ontology:Q502895 } }
Satanik On Tour State buoni se potete
action union
action filter_type
action find
entity Satanik
relation director
type common name
action filter_type
action find
entity On Tour
relation director
type common name
action filter_type
action find
entity State buoni se potete
relation director
type common name
['Satanik', 'director', {'concept': 'common name'}] ['On Tour', 'director', {'concept': 'common name'}] ['State buoni se potete', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { { resource:On_Tour property:director ?y . ?y rdf:type ontology:common_name } UNION { resource:Satanik property:director ?y . ?y rdf:type ontology:common_name } }
[]
common name
Q2092907 Q55465 Q53049
SYSTEM
Piero Vivarelli, Gabriele Salvatores, Luigi Magni
Q2092907 Q55465 Q53049
(Q3950747,P57,c(Q502895)) (Q4000704,P57,c(Q502895)) (Q672656,P57,c(Q502895))
action union
action filter_type
action find
entity Q3950747
relation P57
type Q502895
action filter_type
action find
entity Q4000704
relation P57
type Q502895
action filter_type
action find
entity Q672656
relation P57
type Q502895
[ANSWERS] se potete the director of Satanik , On Tour and State buoni were
['Q3950747', 'P57', {'concept': 'Q502895'}] ['Q4000704', 'P57', {'concept': 'Q502895'}] ['Q672656', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { { resource:Q4000704 property:P57 ?y . ?y rdf:type ontology:Q502895 } UNION { resource:Q3950747 property:P57 ?y . ?y rdf:type ontology:Q502895 } }
Piero Vivarelli Gabriele Salvatores Luigi Magni
Piero Vivarelli, Gabriele Salvatores and Luigi Magni se potete the director of Satanik , On Tour and State buoni were
Piero Vivarelli Gabriele Salvatores Luigi Magni
action union
action filter_type
action find
entity Satanik
relation director
type common name
action filter_type
action find
entity On Tour
relation director
type common name
action filter_type
action find
entity State buoni se potete
relation director
type common name
['Satanik', 'director', {'concept': 'common name'}] ['On Tour', 'director', {'concept': 'common name'}] ['State buoni se potete', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { { resource:On_Tour property:director ?y . ?y rdf:type ontology:common_name } UNION { resource:Satanik property:director ?y . ?y rdf:type ontology:common_name } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q2092907 Q55465 Q53049
P21
Q290
USER
Which sexes do those people have ?
(Q2092907,P21,c(Q290)) (Q55465,P21,c(Q290)) (Q53049,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
['Q2092907', 'P21', {'concept': 'Q290'}] ['Q55465', 'P21', {'concept': 'Q290'}] ['Q53049', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { ?j property:P21 ?x . ?x rdf:type ontology:Q290 . VALUES ( ?j ) { ( resource:Q2092907 ) ( resource:Q55465 ) ( resource:Q53049 ) } }
Piero Vivarelli Gabriele Salvatores Luigi Magni
action filter_type
action find
entity prev_answer
relation gender
type sex
['Piero Vivarelli', 'gender', {'concept': 'sex'}] ['Gabriele Salvatores', 'gender', {'concept': 'sex'}] ['Luigi Magni', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { ?j property:gender ?x . ?x rdf:type ontology:sex . VALUES ( ?j ) { ( resource:Piero_Vivarelli ) ( resource:Gabriele_Salvatores ) ( resource:Luigi_Magni ) } }
[]
sex
Q6581097 Q6581097 Q6581097
SYSTEM
male
Q6581097 Q6581097 Q6581097
(Q2092907,P21,c(Q290)) (Q55465,P21,c(Q290)) (Q53049,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
Those people have a [ANSWER], [ANSWER] and [ANSWER]
['Q2092907', 'P21', {'concept': 'Q290'}] ['Q55465', 'P21', {'concept': 'Q290'}] ['Q53049', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { ?j property:P21 ?x . ?x rdf:type ontology:Q290 . VALUES ( ?j ) { ( resource:Q2092907 ) ( resource:Q55465 ) ( resource:Q53049 ) } }
male male male
Those people have a male, male and male
male male male
action filter_type
action find
entity prev_answer
relation gender
type sex
['Piero Vivarelli', 'gender', {'concept': 'sex'}] ['Gabriele Salvatores', 'gender', {'concept': 'sex'}] ['Luigi Magni', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { ?j property:gender ?x . ?x rdf:type ontology:sex . VALUES ( ?j ) { ( resource:Piero_Vivarelli ) ( resource:Gabriele_Salvatores ) ( resource:Luigi_Magni ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q993165
P106
Q28640
USER
Which professions have Bruno Corbucci as his/her 's career ?
(Q993165,P106,c(Q28640))
action filter_type
action find
entity Q993165
relation P106
type Q28640
['Q993165', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?z WHERE { resource:Q993165 property:P106 ?z . ?z rdf:type ontology:Q28640 }
Bruno Corbucci
action filter_type
action find
entity Bruno Corbucci
relation occupation
type profession
['Bruno Corbucci', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?z WHERE { resource:Bruno_Corbucci property:occupation ?z . ?z rdf:type ontology:profession }
[]
profession
Q2526255 Q3282637 Q28389
SYSTEM
film director, film producer, screenwriter
Q2526255 Q3282637 Q28389
(Q993165,P106,c(Q28640))
action filter_type
action find
entity Q993165
relation P106
type Q28640
The [ANSWERS] have Bruno Corbucci as his/her 's career
['Q993165', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?z WHERE { resource:Q993165 property:P106 ?z . ?z rdf:type ontology:Q28640 }
film director film producer screenwriter
The film director, film producer and screenwriter have Bruno Corbucci as his/her 's career
film director film producer screenwriter
action filter_type
action find
entity Bruno Corbucci
relation occupation
type profession
['Bruno Corbucci', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?z WHERE { resource:Bruno_Corbucci property:occupation ?z . ?z rdf:type ontology:profession }
[]