Simple Question (Direct)
Simple Question
Q2026518
P162
Q502895
USER
Who is the producer of Pass the Gravy ?
(Q2026518,P162,c(Q502895))
action filter_type
action find
entity Q2026518
relation P162
type Q502895
['Q2026518', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q2026518 property:P162 ?m . ?m rdf:type ontology:Q502895 }
Pass the Gravy
action filter_type
action find
entity Pass the Gravy
relation producer
type common name
['Pass the Gravy', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Pass_the_Gravy property:producer ?m . ?m rdf:type ontology:common_name }
[]
common name
Q72792
SYSTEM
Hal Roach
Q72792
(Q2026518,P162,c(Q502895))
action filter_type
action find
entity Q2026518
relation P162
type Q502895
The producer of Pass the Gravy is of [ANSWER]
['Q2026518', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q2026518 property:P162 ?m . ?m rdf:type ontology:Q502895 }
Hal Roach
The producer of Pass the Gravy is of Hal Roach
Hal Roach
action filter_type
action find
entity Pass the Gravy
relation producer
type common name
['Pass the Gravy', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Pass_the_Gravy property:producer ?m . ?m rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q72792
P1431
Q15416
USER
Which television program was that person an executive producer of ?
(c(Q15416),P1431,Q72792)
action filter_type
action find_reverse
entity Q72792
relation P1431
type Q15416
[{'concept': 'Q15416'}, 'P1431', 'Q72792']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q15416 . ?w property:P1431 resource:Q72792 }
Hal Roach
action filter_type
action find_reverse
entity Hal Roach
relation executive producer
type television program
[{'concept': 'television program'}, 'executive producer', 'Hal Roach']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:television_program . ?w property:executive_producer resource:Hal_Roach }
[]
television program
Q7279787
SYSTEM
Racket Squad
Q7279787
(c(Q15416),P1431,Q72792)
action filter_type
action find_reverse
entity Q72792
relation P1431
type Q15416
[ANSWER] was that person an executive producer of
[{'concept': 'Q15416'}, 'P1431', 'Q72792']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q15416 . ?w property:P1431 resource:Q72792 }
Racket Squad
Racket Squad was that person an executive producer of
Racket Squad
action filter_type
action find_reverse
entity Hal Roach
relation executive producer
type television program
[{'concept': 'television program'}, 'executive producer', 'Hal Roach']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:television_program . ?w property:executive_producer resource:Hal_Roach }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7279787
P449
Q4830453
USER
Which network was the first to air that television program ?
(Q7279787,P449,c(Q4830453))
action filter_type
action find
entity Q7279787
relation P449
type Q4830453
['Q7279787', 'P449', {'concept': 'Q4830453'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q4830453 . resource:Q7279787 property:P449 ?o }
Racket Squad
action filter_type
action find
entity Racket Squad
relation original network
type business enterprise
['Racket Squad', 'original network', {'concept': 'business enterprise'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:business_enterprise . resource:Racket_Squad property:original_network ?o }
[]
business enterprise
Q43380
SYSTEM
CBS
Q43380
(Q7279787,P449,c(Q4830453))
action filter_type
action find
entity Q7279787
relation P449
type Q4830453
[ANSWER] was the first to air that television program
['Q7279787', 'P449', {'concept': 'Q4830453'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q4830453 . resource:Q7279787 property:P449 ?o }
CBS
CBS was the first to air that television program
CBS
action filter_type
action find
entity Racket Squad
relation original network
type business enterprise
['Racket Squad', 'original network', {'concept': 'business enterprise'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:business_enterprise . resource:Racket_Squad property:original_network ?o }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q43380 Q602586
P108
Q502895
USER
Does Antonio Joseph work for that business enterprise ?
(Q602586,P108,Q43380)
action is_in
entity Q602586
action find
entity Q43380
relation P108
['Q602586', 'P108', 'Q43380']
ASK WHERE { resource:Q43380 property:P108 resource:Q602586 }
CBS Antonio Joseph
action is_in
entity Antonio Joseph
action find
entity CBS
relation employer
['Antonio Joseph', 'employer', 'CBS']
ASK WHERE { resource:CBS property:employer resource:Antonio_Joseph }
[]
common name
SYSTEM
NO
(Q602586,P108,Q43380)
action is_in
entity Q602586
action find
entity Q43380
relation P108
[ANSWER]
['Q602586', 'P108', 'Q43380']
ASK WHERE { resource:Q43380 property:P108 resource:Q602586 }
No
action is_in
entity Antonio Joseph
action find
entity CBS
relation employer
['Antonio Joseph', 'employer', 'CBS']
ASK WHERE { resource:CBS property:employer resource:Antonio_Joseph }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q19628452 Q7279787
P840 P276
Q56061
USER
Which administrative territories are the narrative locations of Racket Squad or can Veldekestraat be found ?
OR((Q7279787,P840,c(Q56061)), (Q19628452,P276,c(Q56061)))
action filter_type
action union
action find
entity Q7279787
relation P840
action find
entity Q19628452
relation P276
type Q56061
{'OR': [['Q7279787', 'P840', {'concept': 'Q56061'}], ['Q19628452', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q7279787 property:P840 ?n } UNION { resource:Q19628452 property:P276 ?n } } . ?n rdf:type ontology:Q56061 }
Veldekestraat Racket Squad
action filter_type
action union
action find
entity Racket Squad
relation narrative location
action find
entity Veldekestraat
relation location
type administrative territorial entity
{'OR': [['Racket Squad', 'narrative location', {'concept': 'administrative territorial entity'}], ['Veldekestraat', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Racket_Squad property:narrative_location ?n } UNION { resource:Veldekestraat property:location ?n } } . ?n rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q62 Q815428
SYSTEM
San Francisco, Belfeld
Q62 Q815428
OR((Q7279787,P840,c(Q56061)), (Q19628452,P276,c(Q56061)))
action filter_type
action union
action find
entity Q7279787
relation P840
action find
entity Q19628452
relation P276
type Q56061
[ANSWERS] are the narrative locations of Racket Squad or can Veldekestraat be found
{'OR': [['Q7279787', 'P840', {'concept': 'Q56061'}], ['Q19628452', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q7279787 property:P840 ?n } UNION { resource:Q19628452 property:P276 ?n } } . ?n rdf:type ontology:Q56061 }
San Francisco Belfeld
San Francisco and Belfeld are the narrative locations of Racket Squad or can Veldekestraat be found
San Francisco Belfeld
action filter_type
action union
action find
entity Racket Squad
relation narrative location
action find
entity Veldekestraat
relation location
type administrative territorial entity
{'OR': [['Racket Squad', 'narrative location', {'concept': 'administrative territorial entity'}], ['Veldekestraat', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Racket_Squad property:narrative_location ?n } UNION { resource:Veldekestraat property:location ?n } } . ?n rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P291
Q56061 Q21114848 Q2342494
USER
Which administrative territories are the locations of publication of exactly 4 magazine genres and collectables ?
(c(Q21114848)|c(Q2342494),P291,c(Q56061))
action equal
action union
action find_reverse_tuple_counts
relation P291
type Q56061
type Q21114848
action find_reverse_tuple_counts
relation P291
type Q56061
type Q2342494
value 4
[[{'concept': 'Q21114848'}, {'concept': 'Q2342494'}], 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?r ) AS ?e ) WHERE { { ?r property:P291 ?y . ?y rdf:type ontology:Q56061 . ?r rdf:type ontology:Q21114848 } UNION { ?r property:P291 ?y . ?y rdf:type ontology:Q56061 . ?r rdf:type ontology:Q2342494 } } GROUP BY ?y } . FILTER ( ?e = 4 ) }
action equal
action union
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type magazine genre
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type collectable
value 4
[[{'concept': 'magazine genre'}, {'concept': 'collectable'}], 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?r ) AS ?e ) WHERE { { ?r property:place_of_publication ?y . ?y rdf:type ontology:administrative_territorial_entity . ?r rdf:type ontology:magazine_genre } UNION { ?r property:place_of_publication ?y . ?y rdf:type ontology:administrative_territorial_entity . ?r rdf:type ontology:collectable } } GROUP BY ?y } . FILTER ( ?e = 4 ) }
[]
administrative territorial entity magazine genre collectable
Q490 Q1781 Q365
SYSTEM
Milan, Budapest, Cologne
Q12892 Q365 Q8810 Q490 Q1781
(c(Q21114848)|c(Q2342494),P291,c(Q56061))
action equal
action union
action find_reverse_tuple_counts
relation P291
type Q56061
type Q21114848
action find_reverse_tuple_counts
relation P291
type Q56061
type Q2342494
value 4
[ANSWERS] are the locations of publication of exactly 4 magazine genres and collectables
[[{'concept': 'Q21114848'}, {'concept': 'Q2342494'}], 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?r ) AS ?e ) WHERE { { ?r property:P291 ?y . ?y rdf:type ontology:Q56061 . ?r rdf:type ontology:Q21114848 } UNION { ?r property:P291 ?y . ?y rdf:type ontology:Q56061 . ?r rdf:type ontology:Q2342494 } } GROUP BY ?y } . FILTER ( ?e = 4 ) }
Antwerp Cologne Granada Milan Budapest
Milan, Budapest and Cologne are the locations of publication of exactly 4 magazine genres and collectables
Milan Budapest Cologne
action equal
action union
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type magazine genre
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type collectable
value 4
[[{'concept': 'magazine genre'}, {'concept': 'collectable'}], 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?r ) AS ?e ) WHERE { { ?r property:place_of_publication ?y . ?y rdf:type ontology:administrative_territorial_entity . ?r rdf:type ontology:magazine_genre } UNION { ?r property:place_of_publication ?y . ?y rdf:type ontology:administrative_territorial_entity . ?r rdf:type ontology:collectable } } GROUP BY ?y } . FILTER ( ?e = 4 ) }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P417
Q502895 Q1445650 Q56061
USER
Which administrative territories have greater number of people or holidays as their patron saint than that administrative territory ?
(c(Q56061),P417,c(Q502895)|c(Q1445650))
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?z WHERE { { VALUES ( ?k ) { ( ?y ) ( ?x ) } . ?z property:Q28914 ?k } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q502895 . ?x rdf:type ontology:Q1445650 }
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ?z WHERE { { VALUES ( ?k ) { ( ?y ) ( ?x ) } . ?z property:patron_saint ?k } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:common_name . ?x rdf:type ontology:holiday }
[]
common name holiday administrative territorial entity
Comparative|More/Less|Mult. entity type|Clarification
Q1781
SYSTEM
Did you mean Budapest ?
(c(Q56061),P417,c(Q502895)|c(Q1445650))
[ANSWER]
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?z WHERE { { VALUES ( ?k ) { ( ?y ) ( ?x ) } . ?z property:Q28914 ?k } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q502895 . ?x rdf:type ontology:Q1445650 }
Did you mean Budapest ?
Budapest
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ?z WHERE { { VALUES ( ?k ) { ( ?y ) ( ?x ) } . ?z property:patron_saint ?k } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:common_name . ?x rdf:type ontology:holiday }
[]
Comparative Reasoning (All)
USER
No, I meant Milan. Could you tell me the answer for that?
(c(Q56061),P417,c(Q502895)|c(Q1445650))
Q490
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
[]
SYSTEM
2
Q39519 Q220
(c(Q56061),P417,c(Q502895)|c(Q1445650))
[ANSWER]
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?z WHERE { { { ?z property:Q28914 ?y } UNION { ?z property:Q28914 ?x } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q502895 . ?x rdf:type ontology:Q1445650 }
Brinzio Rome
2
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ?z WHERE { { { ?z property:patron_saint ?y } UNION { ?z property:patron_saint ?x } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:common_name . ?x rdf:type ontology:holiday }
[]