Simple Question (Direct)
Simple Question
Q517912
P58
Q502895
USER
Who wrote the script for Telefon ?
(Q517912,P58,c(Q502895))
action filter_type
action find
entity Q517912
relation P58
type Q502895
['Q517912', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q517912 property:P58 ?j . ?j rdf:type ontology:Q502895 }
Telefon
action filter_type
action find
entity Telefon
relation screenwriter
type common name
['Telefon', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Telefon property:screenwriter ?j . ?j rdf:type ontology:common_name }
[]
common name
Q458766 Q347945
SYSTEM
Peter Hyams, Stirling Silliphanta
Q458766 Q347945
(Q517912,P58,c(Q502895))
action filter_type
action find
entity Q517912
relation P58
type Q502895
[ANSWERS] wrote the script for Telefon
['Q517912', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q517912 property:P58 ?j . ?j rdf:type ontology:Q502895 }
Peter Hyams Stirling Silliphanta
Peter Hyams and Stirling Silliphanta wrote the script for Telefon
Peter Hyams Stirling Silliphanta
action filter_type
action find
entity Telefon
relation screenwriter
type common name
['Telefon', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Telefon property:screenwriter ?j . ?j rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q347945
P1346
Q4220917
USER
Where was that person decalred as a victor ?
(c(Q4220917),P1346,Q347945)
action filter_type
action find_reverse
entity Q347945
relation P1346
type Q4220917
[{'concept': 'Q4220917'}, 'P1346', 'Q347945']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q4220917 . ?q property:P1346 resource:Q347945 }
Stirling Silliphanta
action filter_type
action find_reverse
entity Stirling Silliphanta
relation winner
type film award
[{'concept': 'film award'}, 'winner', 'Stirling Silliphanta']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:film_award . ?q property:winner resource:Stirling_Silliphanta }
[]
film award
Clarification for simple ques.
Q347945
SYSTEM
Did you mean Stirling Silliphanta ?
Q458766 Q347945
(c(Q4220917),P1346,Q458766) (c(Q4220917),P1346,Q347945)
[ANSWER]
[{'concept': 'Q4220917'}, 'P1346', 'Q458766'] [{'concept': 'Q4220917'}, 'P1346', 'Q347945']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q4220917 . ?q property:P1346 resource:Q347945 }
Peter Hyams Stirling Silliphanta
Did you mean Stirling Silliphanta ?
Stirling Silliphanta
[{'concept': 'film award'}, 'winner', 'Peter Hyams'] [{'concept': 'film award'}, 'winner', 'Stirling Silliphanta']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:film_award . ?q property:winner resource:Stirling_Silliphanta }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q4220917),P1346,Q347945)
[{'concept': 'Q4220917'}, 'P1346', 'Q347945']
[{'concept': 'film award'}, 'winner', 'Stirling Silliphanta']
[]
Q849124
SYSTEM
Golden Globe Award for Best Screenplay
Q849124
(c(Q4220917),P1346,Q347945)
action filter_type
action find_reverse
entity Q347945
relation P1346
type Q4220917
[ANSWER] that person was decalred as a victor
[{'concept': 'Q4220917'}, 'P1346', 'Q347945']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q4220917 . ?q property:P1346 resource:Q347945 }
Golden Globe Award for Best Screenplay
Golden Globe Award for Best Screenplay that person was decalred as a victor
Golden Globe Award for Best Screenplay
action filter_type
action find_reverse
entity Stirling Silliphanta
relation winner
type film award
[{'concept': 'film award'}, 'winner', 'Stirling Silliphanta']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:film_award . ?q property:winner resource:Stirling_Silliphanta }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1411
Q4220917 Q838948 Q502895
USER
How many film awards did approximately 1344 works of art and people receive ?
(c(Q838948)|c(Q502895),P1411,c(Q4220917))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1411
type Q4220917
type Q838948
action find_reverse_tuple_counts
relation P1411
type Q4220917
type Q502895
value 1344
[[{'concept': 'Q838948'}, {'concept': 'Q502895'}], 'P1411', {'concept': 'Q4220917'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?y ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?x ) AS ?i ) WHERE { VALUES ( ?o ) { ( ontology:Q838948 ) ( ontology:Q502895 ) } . ?x rdf:type ?o } GROUP BY ?j } . FILTER ( ?i = 1344 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation nominated for
type film award
type work of art
action find_reverse_tuple_counts
relation nominated for
type film award
type common name
value 1344
[[{'concept': 'work of art'}, {'concept': 'common name'}], 'nominated for', {'concept': 'film award'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?y ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?x ) AS ?i ) WHERE { VALUES ( ?o ) { ( ontology:work_of_art ) ( ontology:common_name ) } . ?x rdf:type ?o } GROUP BY ?j } . FILTER ( ?i = 1344 ) }
[]
film award work of art common name
SYSTEM
2
Q102427 Q830079
(c(Q838948)|c(Q502895),P1411,c(Q4220917))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1411
type Q4220917
type Q838948
action find_reverse_tuple_counts
relation P1411
type Q4220917
type Q502895
value 1344
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q502895'}], 'P1411', {'concept': 'Q4220917'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?y ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?x ) AS ?i ) WHERE { VALUES ( ?o ) { ( ontology:Q838948 ) ( ontology:Q502895 ) } . ?x rdf:type ?o } GROUP BY ?j } . FILTER ( ?i = 1344 ) }
Academy Award for Best Picture Academy Award for Best Sound Mixing
2
action count
action approx
action union
action find_reverse_tuple_counts
relation nominated for
type film award
type work of art
action find_reverse_tuple_counts
relation nominated for
type film award
type common name
value 1344
[[{'concept': 'work of art'}, {'concept': 'common name'}], 'nominated for', {'concept': 'film award'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?y ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?x ) AS ?i ) WHERE { VALUES ( ?o ) { ( ontology:work_of_art ) ( ontology:common_name ) } . ?x rdf:type ?o } GROUP BY ?j } . FILTER ( ?i = 1344 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q22772338
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Pauli Sipiläinen ?
(Q22772338,P27,c(Q15617994))
action filter_type
action find
entity Q22772338
relation P27
type Q15617994
['Q22772338', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q22772338 property:P27 ?f . ?f rdf:type ontology:Q15617994 }
Pauli Sipiläinen
action filter_type
action find
entity Pauli Sipiläinen
relation country of citizenship
type designation for an administrative territorial entity
['Pauli Sipiläinen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Pauli_Sipiläinen property:country_of_citizenship ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q33
SYSTEM
Finland
Q33
(Q22772338,P27,c(Q15617994))
action filter_type
action find
entity Q22772338
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Pauli Sipiläinen
['Q22772338', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q22772338 property:P27 ?f . ?f rdf:type ontology:Q15617994 }
Finland
Finland is the country of citizenship of Pauli Sipiläinen
Finland
action filter_type
action find
entity Pauli Sipiläinen
relation country of citizenship
type designation for an administrative territorial entity
['Pauli Sipiläinen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Pauli_Sipiläinen property:country_of_citizenship ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q22772338
P106
Q28640
USER
Which profession is the profession of Pauli Sipiläinen ?
(Q22772338,P106,c(Q28640))
action filter_type
action find
entity Q22772338
relation P106
type Q28640
['Q22772338', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?i WHERE { resource:Q22772338 property:P106 ?i . ?i rdf:type ontology:Q28640 }
Pauli Sipiläinen
action filter_type
action find
entity Pauli Sipiläinen
relation occupation
type profession
['Pauli Sipiläinen', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?i WHERE { resource:Pauli_Sipiläinen property:occupation ?i . ?i rdf:type ontology:profession }
[]
profession
Q222344
SYSTEM
cinematographer
Q222344
(Q22772338,P106,c(Q28640))
action filter_type
action find
entity Q22772338
relation P106
type Q28640
The [ANSWER] is the profession of Pauli Sipiläinen
['Q22772338', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?i WHERE { resource:Q22772338 property:P106 ?i . ?i rdf:type ontology:Q28640 }
cinematographer
The cinematographer is the profession of Pauli Sipiläinen
cinematographer
action filter_type
action find
entity Pauli Sipiläinen
relation occupation
type profession
['Pauli Sipiläinen', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?i WHERE { resource:Pauli_Sipiläinen property:occupation ?i . ?i rdf:type ontology:profession }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q22772338
P21
Q290
USER
Which sex does that person belong to ?
(Q222344,P21,c(Q290))
action filter_type
action find
entity Q22772338
relation P21
type Q290
['Q222344', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q290 . resource:Q22772338 property:P21 ?r }
Pauli Sipiläinen
action filter_type
action find
entity Pauli Sipiläinen
relation gender
type sex
['cinematographer', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:sex . resource:Pauli_Sipiläinen property:gender ?r }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q222344,P21,c(Q290))
action filter_type
action find
entity Q22772338
relation P21
type Q290
That person belongs to [ANSWER]
['Q222344', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q290 . resource:Q22772338 property:P21 ?r }
male
That person belongs to male
male
action filter_type
action find
entity Pauli Sipiläinen
relation gender
type sex
['cinematographer', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:sex . resource:Pauli_Sipiläinen property:gender ?r }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q33 Q40
P530
Q1048835
USER
How many political territories have diplomatic associations with Finland and Austria ?
(c(Q1048835),P530,Q33) (c(Q1048835),P530,Q40)
action count
action intersection
action filter_type
action find_reverse
entity Q33
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q40
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q33'] [{'concept': 'Q1048835'}, 'P530', 'Q40']
SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { ?o property:P530 resource:Q33 . ?o rdf:type ontology:Q1048835 . ?o property:P530 resource:Q40 . ?o rdf:type ontology:Q1048835 }
Finland Austria
action count
action intersection
action filter_type
action find_reverse
entity Finland
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Austria
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Finland'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Austria']
SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { ?o property:diplomatic_relation resource:Finland . ?o rdf:type ontology:political_territorial_entity . ?o property:diplomatic_relation resource:Austria . ?o rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
2
Q408 Q183
(c(Q1048835),P530,Q33) (c(Q1048835),P530,Q40)
action count
action intersection
action filter_type
action find_reverse
entity Q33
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q40
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', 'Q33'] [{'concept': 'Q1048835'}, 'P530', 'Q40']
SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { ?o property:P530 resource:Q33 . ?o rdf:type ontology:Q1048835 . ?o property:P530 resource:Q40 . ?o rdf:type ontology:Q1048835 }
Australia Germany
2
action count
action intersection
action filter_type
action find_reverse
entity Finland
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Austria
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Finland'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Austria']
SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { ?o property:diplomatic_relation resource:Finland . ?o rdf:type ontology:political_territorial_entity . ?o property:diplomatic_relation resource:Austria . ?o rdf:type ontology:political_territorial_entity }
[]