Simple Question (Direct)
Simple Question
Q466605
P136
Q1792379
USER
What can be considered as category for Charlie and the Chocolate Factory ?
(Q466605,P136,c(Q1792379))
action filter_type
action find
entity Q466605
relation P136
type Q1792379
['Q466605', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?l WHERE { resource:Q466605 property:P136 ?l . ?l rdf:type ontology:Q1792379 }
Charlie and the Chocolate Factory
action filter_type
action find
entity Charlie and the Chocolate Factory
relation genre
type art genre
['Charlie and the Chocolate Factory', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?l WHERE { resource:Charlie_and_the_Chocolate_Factory property:genre ?l . ?l rdf:type ontology:art_genre }
[]
art genre
Q8261 Q131539
SYSTEM
novel, children's literature
Q8261 Q131539
(Q466605,P136,c(Q1792379))
action filter_type
action find
entity Q466605
relation P136
type Q1792379
[ANSWERS] can be considered as category for Charlie and the Chocolate Factory
['Q466605', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?l WHERE { resource:Q466605 property:P136 ?l . ?l rdf:type ontology:Q1792379 }
novel children's literature
Novel and children's literature can be considered as category for Charlie and the Chocolate Factory
novel children's literature
action filter_type
action find
entity Charlie and the Chocolate Factory
relation genre
type art genre
['Charlie and the Chocolate Factory', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?l WHERE { resource:Charlie_and_the_Chocolate_Factory property:genre ?l . ?l rdf:type ontology:art_genre }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q466605
P800
Q502895
USER
Which person has that collectable as a notable work ?
(c(Q502895),P800,Q8261) (c(Q502895),P800,Q131539)
action filter_type
action find_reverse
entity Q466605
relation P800
type Q502895
[{'concept': 'Q502895'}, 'P800', 'Q8261'] [{'concept': 'Q502895'}, 'P800', 'Q131539']
SELECT DISTINCT ?m WHERE { ?m property:P800 resource:Q466605 . ?m rdf:type ontology:Q502895 }
Charlie and the Chocolate Factory
action filter_type
action find_reverse
entity Charlie and the Chocolate Factory
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'novel'] [{'concept': 'common name'}, 'notable work', "children's literature"]
SELECT DISTINCT ?m WHERE { ?m property:notable_work resource:Charlie_and_the_Chocolate_Factory . ?m rdf:type ontology:common_name }
[]
common name
Q25161
SYSTEM
Roald Dahl
Q25161
(c(Q502895),P800,Q8261) (c(Q502895),P800,Q131539)
action filter_type
action find_reverse
entity Q466605
relation P800
type Q502895
[ANSWER] has that collectable as a notable work
[{'concept': 'Q502895'}, 'P800', 'Q8261'] [{'concept': 'Q502895'}, 'P800', 'Q131539']
SELECT DISTINCT ?m WHERE { ?m property:P800 resource:Q466605 . ?m rdf:type ontology:Q502895 }
Roald Dahl
Roald Dahl has that collectable as a notable work
Roald Dahl
action filter_type
action find_reverse
entity Charlie and the Chocolate Factory
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'novel'] [{'concept': 'common name'}, 'notable work', "children's literature"]
SELECT DISTINCT ?m WHERE { ?m property:notable_work resource:Charlie_and_the_Chocolate_Factory . ?m rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q25161 Q9303540 Q167768
P737
Q502895
USER
Did Rajmonda Aleksi and William Makepeace Thackeray have an influence on Q25161 ?
(Q25161,P737,Q9303540) (Q25161,P737,Q167768)
action is_in
entity Q25161
action intersection
action find_reverse
entity Q9303540
relation P737
action find_reverse
entity Q167768
relation P737
['Q25161', 'P737', 'Q9303540'] ['Q25161', 'P737', 'Q167768']
ASK WHERE { resource:Q25161 property:P737 resource:Q9303540 . resource:Q25161 property:P737 resource:Q167768 }
Roald Dahl Rajmonda Aleksi William Makepeace Thackeray
action is_in
entity Roald Dahl
action intersection
action find_reverse
entity Rajmonda Aleksi
relation influenced by
action find_reverse
entity William Makepeace Thackeray
relation influenced by
['Roald Dahl', 'influenced by', 'Rajmonda Aleksi'] ['Roald Dahl', 'influenced by', 'William Makepeace Thackeray']
ASK WHERE { resource:Roald_Dahl property:influenced_by resource:Rajmonda_Aleksi . resource:Roald_Dahl property:influenced_by resource:William_Makepeace_Thackeray }
[]
common name
SYSTEM
NO and YES respectively
(Q25161,P737,Q9303540) (Q25161,P737,Q167768)
action is_in
entity Q25161
action intersection
action find_reverse
entity Q9303540
relation P737
action find_reverse
entity Q167768
relation P737
[ANSWER]
['Q25161', 'P737', 'Q9303540'] ['Q25161', 'P737', 'Q167768']
ASK WHERE { resource:Q25161 property:P737 resource:Q9303540 . resource:Q25161 property:P737 resource:Q167768 }
NO and YES respectively
action is_in
entity Roald Dahl
action intersection
action find_reverse
entity Rajmonda Aleksi
relation influenced by
action find_reverse
entity William Makepeace Thackeray
relation influenced by
['Roald Dahl', 'influenced by', 'Rajmonda Aleksi'] ['Roald Dahl', 'influenced by', 'William Makepeace Thackeray']
ASK WHERE { resource:Roald_Dahl property:influenced_by resource:Rajmonda_Aleksi . resource:Roald_Dahl property:influenced_by resource:William_Makepeace_Thackeray }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3828864 Q25161
P737 P161
Q502895
USER
Which people had an influence on Roald Dahl or starred in His Young Wife ?
OR((Q25161,P737,c(Q502895)), (Q3828864,P161,c(Q502895)))
action filter_type
action union
action find
entity Q25161
relation P737
action find
entity Q3828864
relation P161
type Q502895
{'OR': [['Q25161', 'P737', {'concept': 'Q502895'}], ['Q3828864', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q3828864 property:P161 ?a } UNION { resource:Q25161 property:P737 ?a } } . ?a rdf:type ontology:Q502895 }
His Young Wife Roald Dahl
action filter_type
action union
action find
entity Roald Dahl
relation influenced by
action find
entity His Young Wife
relation cast member
type common name
{'OR': [['Roald Dahl', 'influenced by', {'concept': 'common name'}], ['His Young Wife', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?a WHERE { { { resource:His_Young_Wife property:cast_member ?a } UNION { resource:Roald_Dahl property:influenced_by ?a } } . ?a rdf:type ontology:common_name }
[]
common name
Q3893639 Q554301 Q3856680 Q3659612 Q467770 Q4009799 Q5686 Q50003 Q167768 Q177876
SYSTEM
Some of them are Paola Veneroni, Gino Cervi, Michele Malaspina, Carlo Mazzarella, Frederick Marryat, Vera Carmi, Charles Dickens, Alberto Sordi, William Makepeace Thackeray, Gianni Agus
Q177876 Q3893639 Q50003 Q430182 Q556325 Q467770 Q469681 Q4009799 Q34743 Q132344 Q118184 Q5686 Q3218689 Q1363138 Q3856680 Q554301 Q553750 Q167768 Q3659612
OR((Q25161,P737,c(Q502895)), (Q3828864,P161,c(Q502895)))
action filter_type
action union
action find
entity Q25161
relation P737
action find
entity Q3828864
relation P161
type Q502895
[ANSWERS] had an influence on Roald Dahl or starred in His Young Wife
{'OR': [['Q25161', 'P737', {'concept': 'Q502895'}], ['Q3828864', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q3828864 property:P161 ?a } UNION { resource:Q25161 property:P737 ?a } } . ?a rdf:type ontology:Q502895 }
Gianni Agus Paola Veneroni Alberto Sordi C. S. Forester Luigi Pavese Frederick Marryat Jonas Lie Vera Carmi Rudyard Kipling Domenico Gambino Mario Siletti Charles Dickens Laura Gore Felice Minotti Michele Malaspina Gino Cervi Carlo Campanini William Makepeace Thackeray Carlo Mazzarella
Paola Veneroni, Gino Cervi, Michele Malaspina, Carlo Mazzarella, Frederick Marryat, Vera Carmi, Charles Dickens, Alberto Sordi, William Makepeace Thackeray and Gianni Agus had an influence on Roald Dahl or starred in His Young Wife
Paola Veneroni Gino Cervi Michele Malaspina Carlo Mazzarella Frederick Marryat Vera Carmi Charles Dickens Alberto Sordi William Makepeace Thackeray Gianni Agus
action filter_type
action union
action find
entity Roald Dahl
relation influenced by
action find
entity His Young Wife
relation cast member
type common name
{'OR': [['Roald Dahl', 'influenced by', {'concept': 'common name'}], ['His Young Wife', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?a WHERE { { { resource:His_Young_Wife property:cast_member ?a } UNION { resource:Roald_Dahl property:influenced_by ?a } } . ?a rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q3826339 Q3893639
P161
Q838948
USER
Which works of art have Paola Veneroni and Lamberto Picasso in their star cast ?
AND((c(Q838948),P161,Q3893639), (c(Q838948),P161,Q3826339))
action filter_type
action intersection
action find_reverse
entity Q3893639
relation P161
action find_reverse
entity Q3826339
relation P161
type Q838948
{'AND': [[{'concept': 'Q838948'}, 'P161', 'Q3893639'], [{'concept': 'Q838948'}, 'P161', 'Q3826339']]}
SELECT DISTINCT ?j WHERE { ?j property:P161 resource:Q3893639 . ?j property:P161 resource:Q3826339 . ?j rdf:type ontology:Q838948 }
Lamberto Picasso Paola Veneroni
action filter_type
action intersection
action find_reverse
entity Paola Veneroni
relation cast member
action find_reverse
entity Lamberto Picasso
relation cast member
type work of art
{'AND': [[{'concept': 'work of art'}, 'cast member', 'Paola Veneroni'], [{'concept': 'work of art'}, 'cast member', 'Lamberto Picasso']]}
SELECT DISTINCT ?j WHERE { ?j property:cast_member resource:Paola_Veneroni . ?j property:cast_member resource:Lamberto_Picasso . ?j rdf:type ontology:work_of_art }
[]
work of art
Q3232820
SYSTEM
The Brothers Karamazov
Q3232820
AND((c(Q838948),P161,Q3893639), (c(Q838948),P161,Q3826339))
action filter_type
action intersection
action find_reverse
entity Q3893639
relation P161
action find_reverse
entity Q3826339
relation P161
type Q838948
[ANSWER] have Paola Veneroni and Lamberto Picasso in their star cast
{'AND': [[{'concept': 'Q838948'}, 'P161', 'Q3893639'], [{'concept': 'Q838948'}, 'P161', 'Q3826339']]}
SELECT DISTINCT ?j WHERE { ?j property:P161 resource:Q3893639 . ?j property:P161 resource:Q3826339 . ?j rdf:type ontology:Q838948 }
The Brothers Karamazov
The Brothers Karamazov have Paola Veneroni and Lamberto Picasso in their star cast
The Brothers Karamazov
action filter_type
action intersection
action find_reverse
entity Paola Veneroni
relation cast member
action find_reverse
entity Lamberto Picasso
relation cast member
type work of art
{'AND': [[{'concept': 'work of art'}, 'cast member', 'Paola Veneroni'], [{'concept': 'work of art'}, 'cast member', 'Lamberto Picasso']]}
SELECT DISTINCT ?j WHERE { ?j property:cast_member resource:Paola_Veneroni . ?j property:cast_member resource:Lamberto_Picasso . ?j rdf:type ontology:work_of_art }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q3232820 Q38
P495
Q15617994
USER
Is Italy the origin of that work of art ?
(Q3232820,P495,Q38)
action is_in
entity Q38
action find
entity Q3232820
relation P495
['Q3232820', 'P495', 'Q38']
ASK WHERE { resource:Q3232820 property:P495 resource:Q38 }
The Brothers Karamazov Italy
action is_in
entity Italy
action find
entity The Brothers Karamazov
relation country of origin
['The Brothers Karamazov', 'country of origin', 'Italy']
ASK WHERE { resource:The_Brothers_Karamazov property:country_of_origin resource:Italy }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q3232820,P495,Q38)
action is_in
entity Q38
action find
entity Q3232820
relation P495
[ANSWER]
['Q3232820', 'P495', 'Q38']
ASK WHERE { resource:Q3232820 property:P495 resource:Q38 }
Yes
action is_in
entity Italy
action find
entity The Brothers Karamazov
relation country of origin
['The Brothers Karamazov', 'country of origin', 'Italy']
ASK WHERE { resource:The_Brothers_Karamazov property:country_of_origin resource:Italy }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q5686 Q200661
P106
Q12737077
USER
How many occupations do Charles Dickens and Juan Rulfo do for a living ?
(Q5686,P106,c(Q12737077)) (Q200661,P106,c(Q12737077))
action count
action intersection
action filter_type
action find
entity Q5686
relation P106
type Q12737077
action filter_type
action find
entity Q200661
relation P106
type Q12737077
['Q5686', 'P106', {'concept': 'Q12737077'}] ['Q200661', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) WHERE { resource:Q5686 property:P106 ?s . ?s rdf:type ontology:Q12737077 . ?s rdf:type ontology:Q12737077 . resource:Q200661 property:P106 ?s }
Charles Dickens Juan Rulfo
action count
action intersection
action filter_type
action find
entity Charles Dickens
relation occupation
type occupation
action filter_type
action find
entity Juan Rulfo
relation occupation
type occupation
['Charles Dickens', 'occupation', {'concept': 'occupation'}] ['Juan Rulfo', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) WHERE { resource:Charles_Dickens property:occupation ?s . ?s rdf:type ontology:occupation . ?s rdf:type ontology:occupation . resource:Juan_Rulfo property:occupation ?s }
[]
occupation
SYSTEM
2
Q36180 Q6625963
(Q5686,P106,c(Q12737077)) (Q200661,P106,c(Q12737077))
action count
action intersection
action filter_type
action find
entity Q5686
relation P106
type Q12737077
action filter_type
action find
entity Q200661
relation P106
type Q12737077
[ANSWER]
['Q5686', 'P106', {'concept': 'Q12737077'}] ['Q200661', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) WHERE { resource:Q5686 property:P106 ?s . ?s rdf:type ontology:Q12737077 . ?s rdf:type ontology:Q12737077 . resource:Q200661 property:P106 ?s }
writer novelist
2
action count
action intersection
action filter_type
action find
entity Charles Dickens
relation occupation
type occupation
action filter_type
action find
entity Juan Rulfo
relation occupation
type occupation
['Charles Dickens', 'occupation', {'concept': 'occupation'}] ['Juan Rulfo', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) WHERE { resource:Charles_Dickens property:occupation ?s . ?s rdf:type ontology:occupation . ?s rdf:type ontology:occupation . resource:Juan_Rulfo property:occupation ?s }
[]