Simple Question (Direct)
Simple Question
Q352630
P166
Q2003221
USER
Which chivalric order was Richard O'Connor awarded with ?
(Q352630,P166,c(Q2003221))
action filter_type
action find
entity Q352630
relation P166
type Q2003221
['Q352630', 'P166', {'concept': 'Q2003221'}]
SELECT DISTINCT ?t WHERE { resource:Q352630 property:P166 ?t . ?t rdf:type ontology:Q2003221 }
Richard O'Connor
action filter_type
action find
entity Richard O'Connor
relation award received
type chivalric order
["Richard O'Connor", 'award received', {'concept': 'chivalric order'}]
SELECT DISTINCT ?t WHERE { resource:Richard_O'Connor property:award_received ?t . ?t rdf:type ontology:chivalric_order }
[]
chivalric order
Q12177451
SYSTEM
Knight Grand Cross of the Order of the Bath
Q12177451
(Q352630,P166,c(Q2003221))
action filter_type
action find
entity Q352630
relation P166
type Q2003221
Richard O'Connor was awarded the [ANSWER]
['Q352630', 'P166', {'concept': 'Q2003221'}]
SELECT DISTINCT ?t WHERE { resource:Q352630 property:P166 ?t . ?t rdf:type ontology:Q2003221 }
Knight Grand Cross of the Order of the Bath
Richard O'Connor was awarded the Knight Grand Cross of the Order of the Bath
Knight Grand Cross of the Order of the Bath
action filter_type
action find
entity Richard O'Connor
relation award received
type chivalric order
["Richard O'Connor", 'award received', {'concept': 'chivalric order'}]
SELECT DISTINCT ?t WHERE { resource:Richard_O'Connor property:award_received ?t . ?t rdf:type ontology:chivalric_order }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q352630
P20
Q56061
USER
Where did the demise of Richard O'Connor occur ?
(Q352630,P20,c(Q56061))
action filter_type
action find
entity Q352630
relation P20
type Q56061
['Q352630', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q352630 property:P20 ?z . ?z rdf:type ontology:Q56061 }
Richard O'Connor
action filter_type
action find
entity Richard O'Connor
relation place of death
type administrative territorial entity
["Richard O'Connor", 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Richard_O'Connor property:place_of_death ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q84
SYSTEM
London
Q84
(Q352630,P20,c(Q56061))
action filter_type
action find
entity Q352630
relation P20
type Q56061
The demise of Richard O'Connor occurred in [ANSWER]
['Q352630', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q352630 property:P20 ?z . ?z rdf:type ontology:Q56061 }
London
The demise of Richard O'Connor occurred in London
London
action filter_type
action find
entity Richard O'Connor
relation place of death
type administrative territorial entity
["Richard O'Connor", 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Richard_O'Connor property:place_of_death ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q352630
P19
Q56061
USER
Which administrative territory was that person born at ?
(Q84,P19,c(Q56061))
action filter_type
action find
entity Q352630
relation P19
type Q56061
['Q84', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q352630 property:P19 ?h . ?h rdf:type ontology:Q56061 }
Richard O'Connor
action filter_type
action find
entity Richard O'Connor
relation place of birth
type administrative territorial entity
['London', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Richard_O'Connor property:place_of_birth ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q170115
SYSTEM
Srinagar
Q170115
(Q84,P19,c(Q56061))
action filter_type
action find
entity Q352630
relation P19
type Q56061
That person was born in [ANSWER]
['Q84', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q352630 property:P19 ?h . ?h rdf:type ontology:Q56061 }
Srinagar
That person was born in Srinagar
Srinagar
action filter_type
action find
entity Richard O'Connor
relation place of birth
type administrative territorial entity
['London', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Richard_O'Connor property:place_of_birth ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q4965025 Q352630
P27
Q15617994
USER
Which administrative territories are Richard O'Connor and Brian Perry a civilian of ?
AND((Q352630,P27,c(Q15617994)), (Q4965025,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q352630
relation P27
action find
entity Q4965025
relation P27
type Q15617994
{'AND': [['Q352630', 'P27', {'concept': 'Q15617994'}], ['Q4965025', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { resource:Q352630 property:P27 ?o . resource:Q4965025 property:P27 ?o . ?o rdf:type ontology:Q15617994 }
Brian Perry Richard O'Connor
action filter_type
action intersection
action find
entity Richard O'Connor
relation country of citizenship
action find
entity Brian Perry
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [["Richard O'Connor", 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Brian Perry', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { resource:Richard_O'Connor property:country_of_citizenship ?o . resource:Brian_Perry property:country_of_citizenship ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
AND((Q352630,P27,c(Q15617994)), (Q4965025,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q352630
relation P27
action find
entity Q4965025
relation P27
type Q15617994
[ANSWER] is Richard O'Connor and Brian Perry a civilian of
{'AND': [['Q352630', 'P27', {'concept': 'Q15617994'}], ['Q4965025', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { resource:Q352630 property:P27 ?o . resource:Q4965025 property:P27 ?o . ?o rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom is Richard O'Connor and Brian Perry a civilian of
United Kingdom
action filter_type
action intersection
action find
entity Richard O'Connor
relation country of citizenship
action find
entity Brian Perry
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [["Richard O'Connor", 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Brian Perry', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { resource:Richard_O'Connor property:country_of_citizenship ?o . resource:Brian_Perry property:country_of_citizenship ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q4950520 Q352630
P27 P17
Q15617994
USER
Which administrative territories are the countries of citizenship of Richard O'Connor or are Boveire Glacier present in ?
OR((Q352630,P27,c(Q15617994)), (Q4950520,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q352630
relation P27
action find
entity Q4950520
relation P17
type Q15617994
{'OR': [['Q352630', 'P27', {'concept': 'Q15617994'}], ['Q4950520', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q352630 property:P27 ?u } UNION { resource:Q4950520 property:P17 ?u } } . ?u rdf:type ontology:Q15617994 }
Boveire Glacier Richard O'Connor
action filter_type
action union
action find
entity Richard O'Connor
relation country of citizenship
action find
entity Boveire Glacier
relation country
type designation for an administrative territorial entity
{'OR': [["Richard O'Connor", 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Boveire Glacier', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Richard_O'Connor property:country_of_citizenship ?u } UNION { resource:Boveire_Glacier property:country ?u } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q39 Q145
SYSTEM
Switzerland, United Kingdom
Q39 Q145
OR((Q352630,P27,c(Q15617994)), (Q4950520,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q352630
relation P27
action find
entity Q4950520
relation P17
type Q15617994
[ANSWERS] are the countries of citizenship of Richard O'Connor or are Boveire Glacier present in
{'OR': [['Q352630', 'P27', {'concept': 'Q15617994'}], ['Q4950520', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q352630 property:P27 ?u } UNION { resource:Q4950520 property:P17 ?u } } . ?u rdf:type ontology:Q15617994 }
Switzerland United Kingdom
Switzerland and United Kingdom are the countries of citizenship of Richard O'Connor or are Boveire Glacier present in
Switzerland United Kingdom
action filter_type
action union
action find
entity Richard O'Connor
relation country of citizenship
action find
entity Boveire Glacier
relation country
type designation for an administrative territorial entity
{'OR': [["Richard O'Connor", 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Boveire Glacier', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Richard_O'Connor property:country_of_citizenship ?u } UNION { resource:Boveire_Glacier property:country ?u } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic associations with exactly 74 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action equal
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 74
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?x ) AS ?z ) WHERE { ?j property:P530 ?x . ?j rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15617994 } GROUP BY ?j } . FILTER ( ?z = 74 ) }
action equal
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 74
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?x ) AS ?z ) WHERE { ?j property:diplomatic_relation ?x . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } . FILTER ( ?z = 74 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(c(Q15617994),P530,c(Q15617994))
action equal
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 74
[ANSWER] have diplomatic associations with exactly 74 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?x ) AS ?z ) WHERE { ?j property:P530 ?x . ?j rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15617994 } GROUP BY ?j } . FILTER ( ?z = 74 ) }
Italy
Italy have diplomatic associations with exactly 74 administrative territories
Italy
action equal
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 74
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?x ) AS ?z ) WHERE { ?j property:diplomatic_relation ?x . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } . FILTER ( ?z = 74 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P840
Q15416
USER
Which television programs have a setting location of United Kingdom ?
(c(Q15416),P840,Q145)
action filter_type
action find_reverse
entity Q145
relation P840
type Q15416
[{'concept': 'Q15416'}, 'P840', 'Q145']
SELECT DISTINCT ?w WHERE { ?w property:P840 resource:Q145 . ?w rdf:type ontology:Q15416 }
United Kingdom
action filter_type
action find_reverse
entity United Kingdom
relation narrative location
type television program
[{'concept': 'television program'}, 'narrative location', 'United Kingdom']
SELECT DISTINCT ?w WHERE { ?w property:narrative_location resource:United_Kingdom . ?w rdf:type ontology:television_program }
[]
television program
Q17039455 Q16385485 Q1890400
SYSTEM
Wolf Hall, Dickensian, Terry Pratchett's The Colour of Magic
Q15974784 Q16993261 Q16956081 Q17150444 Q16997329 Q17018116 Q20713401 Q20020291 Q10337169 Q16953956 Q17022471 Q16995658 Q15109282 Q21775778 Q16995048 Q20718353 Q16992630 Q15270664 Q19824815 Q16385485 Q16994985 Q16997851 Q16993375 Q16995459 Q5519196 Q17019426 Q16993458 Q17039455 Q7832449 Q652460 Q15109327 Q17034138 Q16953842 Q19650404 Q16988682 Q7759292 Q16958386 Q17016976 Q2070312 Q16961393 Q15732968 Q16995528 Q17017945 Q6959460 Q16996902 Q15619684 Q18712151 Q16988855 Q193973 Q16679651 Q16993244 Q16996291 Q17013583 Q7641426 Q17018809 Q16976961 Q7677671 Q16992051 Q16953744 Q17104366 Q17104024 Q16994796 Q16994352 Q17033935 Q21998276 Q15109310 Q17020225 Q16994324 Q1890400
(c(Q15416),P840,Q145)
action filter_type
action find_reverse
entity Q145
relation P840
type Q15416
[ANSWERS] have a setting location of United Kingdom
[{'concept': 'Q15416'}, 'P840', 'Q145']
SELECT DISTINCT ?w WHERE { ?w property:P840 resource:Q145 . ?w rdf:type ontology:Q15416 }
The Great Train Robbery The Great Interior Design Challenge Castles in the Sky Barely Legal Drivers Mapp and Lucia Pound Shop Wars The Outcast 24 Hours in the Past Noah and Saskia The Brits who Built the Modern World Supermarket Secrets Killer Magic The Crane Gang Josh Invasion of the Job Snatchers Agatha Raisin The Game Framed Nurse Dickensian The Interceptor Mind the Gap: London vs the Rest Grey Mates Jonathan Strange & Mr Norrell Gallowglass Sacred Wonders of Britain The Guess List Wolf Hall Traffic Cops Trinity Tudor Monastery Farm Watermen: a Dirty Business Britain and the Sea Life in Squares Detectorists The Railway: Keeping Britain On Track Cilla Ordinary Lies Percy Stuart Saving Britain's Past W1A Junior Paramedics Poldark Oakie Doke London Spy House of Fools Cara Fi Doctor Foster Secret State The Line of Beauty Great British Garden Revival The Life of Rock with Brian Pern The Passing Bells Sunshine Remember Me Pat & Cabbage Take Me Famous, Rich and Hungry The Big Allotment Challenge Mud, Sweat & Gears River In and Out of the Kitchen The House that £100k Built Watchdog Test House Tracey Ullman's Show Iceland Foods: Life in the Freezer Cabinet The Secrets Hotel of Mum and Dad Terry Pratchett's The Colour of Magic
Wolf Hall, Dickensian and Terry Pratchett's The Colour of Magic have a setting location of United Kingdom
Wolf Hall Dickensian Terry Pratchett's The Colour of Magic
action filter_type
action find_reverse
entity United Kingdom
relation narrative location
type television program
[{'concept': 'television program'}, 'narrative location', 'United Kingdom']
SELECT DISTINCT ?w WHERE { ?w property:narrative_location resource:United_Kingdom . ?w rdf:type ontology:television_program }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q17039455 Q16385485 Q1890400
P161
Q502895
USER
Which people are in those television programs ?
(Q17039455,P161,c(Q502895)) (Q16385485,P161,c(Q502895)) (Q1890400,P161,c(Q502895))
action filter_type
action find
entity prev_answer
relation P161
type Q502895
['Q17039455', 'P161', {'concept': 'Q502895'}] ['Q16385485', 'P161', {'concept': 'Q502895'}] ['Q1890400', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . VALUES ( ?o ) { ( resource:Q15974784 ) ( resource:Q16993261 ) ( resource:Q16956081 ) } . ?o property:P161 ?a }
Wolf Hall Dickensian Terry Pratchett's The Colour of Magic
action filter_type
action find
entity prev_answer
relation cast member
type common name
['Wolf Hall', 'cast member', {'concept': 'common name'}] ['Dickensian', 'cast member', {'concept': 'common name'}] ["Terry Pratchett's The Colour of Magic", 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . VALUES ( ?o ) { ( resource:The_Great_Train_Robbery ) ( resource:The_Great_Interior_Design_Challenge ) ( resource:Castles_in_the_Sky ) } . ?o property:cast_member ?a }
[]
common name
Q180338 Q355835 Q324572
SYSTEM
Christopher Lee, Mathieu Amalric, Mark Rylance
Q2361731 Q312531 Q312702 Q591515 Q2491464 Q258999 Q380178 Q2023710 Q560286 Q355835 Q273366 Q164069 Q6187419 Q6272441 Q310515 Q342533 Q324572 Q16231541 Q3436554 Q468241 Q7324895 Q18686881 Q3992542 Q591515 Q20724699 Q16239893 Q7325000 Q6985971 Q376981 Q313042 Q242705 Q15456833 Q20676942 Q3431161 Q2857087 Q4720692 Q1880718 Q5365343 Q452650 Q7325325 Q7563060 Q2460289 Q180338 Q171745 Q523389 Q6851522 Q320073 Q1807757 Q189351 Q740202 Q465981 Q2232106 Q52392 Q4282275 Q964329 Q733122 Q342419
(Q17039455,P161,c(Q502895)) (Q16385485,P161,c(Q502895)) (Q1890400,P161,c(Q502895))
action filter_type
action find
entity prev_answer
relation P161
type Q502895
[ANSWERS] are in those television programs
['Q17039455', 'P161', {'concept': 'Q502895'}] ['Q16385485', 'P161', {'concept': 'Q502895'}] ['Q1890400', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . VALUES ( ?o ) { ( resource:Q15974784 ) ( resource:Q16993261 ) ( resource:Q16956081 ) } . ?o property:P161 ?a }
Charity Wakefield Thomas Brodie-Sangster Jonathan Pryce Anton Lesser David Robb Claire Foy Harry Lloyd Tom Holland Mark Gatiss Mathieu Amalric Saskia Reeves Joanne Whalley Jessica Raine Jonathan Aris Bernard Hill Damian Lewis Mark Rylance Jack Shalloo Robert Wilfort Omid Djalili Richard Cordery Sam Hoare Tom Weston-Jones Anton Lesser Mark Stanley Jennifer Hennessy Richard Cunningham Ned Dennehy Peter Firth Stephen Rea Pauline Collins Stuart McQuarrie John Heffernan Richard Ridings Antonia Bernath Alexandra Moen Caroline Quentin Ellie Haddington Christopher Fairbank Richard Durden Sophie Rundle Tuppence Middleton Christopher Lee Jeremy Irons Liz May Brice Miles Richardson David Bradley Laura Haddock Sean Astin Roger Ashton-Griffiths Karen David Nigel Planer Tim Curry Stephen Marcus David Jason James Cosmo Toby Jones
Christopher Lee, Mathieu Amalric and Mark Rylance are in those television programs
Christopher Lee Mathieu Amalric Mark Rylance
action filter_type
action find
entity prev_answer
relation cast member
type common name
['Wolf Hall', 'cast member', {'concept': 'common name'}] ['Dickensian', 'cast member', {'concept': 'common name'}] ["Terry Pratchett's The Colour of Magic", 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . VALUES ( ?o ) { ( resource:The_Great_Train_Robbery ) ( resource:The_Great_Interior_Design_Challenge ) ( resource:Castles_in_the_Sky ) } . ?o property:cast_member ?a }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q180338 Q355835 Q324572
P161
Q15416
USER
Which television programs have Christopher Lee, Mathieu Amalric and Mark Rylance in their star cast ?
(c(Q15416),P161,Q180338) (c(Q15416),P161,Q355835) (c(Q15416),P161,Q324572)
action union
action filter_type
action find_reverse
entity Q180338
relation P161
type Q15416
action filter_type
action find_reverse
entity Q355835
relation P161
type Q15416
action filter_type
action find_reverse
entity Q324572
relation P161
type Q15416
[{'concept': 'Q15416'}, 'P161', 'Q180338'] [{'concept': 'Q15416'}, 'P161', 'Q355835'] [{'concept': 'Q15416'}, 'P161', 'Q324572']
SELECT DISTINCT ?l WHERE { { ?l property:P161 resource:Q180338 . ?l rdf:type ontology:Q15416 } UNION { ?l rdf:type ontology:Q15416 . ?l property:P161 resource:Q355835 } }
Christopher Lee Mathieu Amalric Mark Rylance
action union
action filter_type
action find_reverse
entity Christopher Lee
relation cast member
type television program
action filter_type
action find_reverse
entity Mathieu Amalric
relation cast member
type television program
action filter_type
action find_reverse
entity Mark Rylance
relation cast member
type television program
[{'concept': 'television program'}, 'cast member', 'Christopher Lee'] [{'concept': 'television program'}, 'cast member', 'Mathieu Amalric'] [{'concept': 'television program'}, 'cast member', 'Mark Rylance']
SELECT DISTINCT ?l WHERE { { ?l property:cast_member resource:Christopher_Lee . ?l rdf:type ontology:television_program } UNION { ?l rdf:type ontology:television_program . ?l property:cast_member resource:Mathieu_Amalric } }
[]
television program
Q17039455 Q17039455 Q935421
SYSTEM
Treasure Island for 3rd, Wolf Hall for 1st, 2nd
Q935421 Q4380266 Q5299935 Q3481952 Q1211352 Q2036203 Q1890400 Q1181267 Q130627 Q17039455 Q13476212 Q17039455
(c(Q15416),P161,Q180338) (c(Q15416),P161,Q355835) (c(Q15416),P161,Q324572)
action union
action filter_type
action find_reverse
entity Q180338
relation P161
type Q15416
action filter_type
action find_reverse
entity Q355835
relation P161
type Q15416
action filter_type
action find_reverse
entity Q324572
relation P161
type Q15416
[ANSWERS]
[{'concept': 'Q15416'}, 'P161', 'Q180338'] [{'concept': 'Q15416'}, 'P161', 'Q355835'] [{'concept': 'Q15416'}, 'P161', 'Q324572']
SELECT DISTINCT ?l WHERE { { ?l property:P161 resource:Q180338 . ?l rdf:type ontology:Q15416 } UNION { ?l rdf:type ontology:Q15416 . ?l property:P161 resource:Q355835 } }
Treasure Island Incident at Victoria Falls Double Vision Sherlock Holmes and the Leading Lady Moses Wyrd Sisters Terry Pratchett's The Colour of Magic Death Train Pope John Paul II Wolf Hall Les Anonymes Wolf Hall
Wolf Hall, Wolf Hall and Treasure Island have Christopher Lee, Mathieu Amalric and Mark Rylance in their star cast
Wolf Hall Wolf Hall Treasure Island
action union
action filter_type
action find_reverse
entity Christopher Lee
relation cast member
type television program
action filter_type
action find_reverse
entity Mathieu Amalric
relation cast member
type television program
action filter_type
action find_reverse
entity Mark Rylance
relation cast member
type television program
[{'concept': 'television program'}, 'cast member', 'Christopher Lee'] [{'concept': 'television program'}, 'cast member', 'Mathieu Amalric'] [{'concept': 'television program'}, 'cast member', 'Mark Rylance']
SELECT DISTINCT ?l WHERE { { ?l property:cast_member resource:Christopher_Lee . ?l rdf:type ontology:television_program } UNION { ?l rdf:type ontology:television_program . ?l property:cast_member resource:Mathieu_Amalric } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q935421
P674
Q12737077
USER
Which occupation appears as a character in that television program ?
(Q935421,P674,c(Q12737077))
action filter_type
action find
entity Q935421
relation P674
type Q12737077
['Q935421', 'P674', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q935421 property:P674 ?e . ?e rdf:type ontology:Q12737077 }
Treasure Island
action filter_type
action find
entity Treasure Island
relation characters
type occupation
['Treasure Island', 'characters', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Treasure_Island property:characters ?e . ?e rdf:type ontology:occupation }
[]
occupation
Clarification for simple ques.
Q17039455
SYSTEM
Did you mean Wolf Hall ?
Q17039455 Q17039455 Q935421
(Q17039455,P674,c(Q12737077)) (Q17039455,P674,c(Q12737077)) (Q935421,P674,c(Q12737077))
[ANSWER]
['Q17039455', 'P674', {'concept': 'Q12737077'}] ['Q17039455', 'P674', {'concept': 'Q12737077'}] ['Q935421', 'P674', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q935421 property:P674 ?e . ?e rdf:type ontology:Q12737077 }
Wolf Hall Wolf Hall Treasure Island
Did you mean Wolf Hall ?
Wolf Hall
['Wolf Hall', 'characters', {'concept': 'occupation'}] ['Wolf Hall', 'characters', {'concept': 'occupation'}] ['Treasure Island', 'characters', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Treasure_Island property:characters ?e . ?e rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
USER
No, I meant Treasure Island. Could you tell me the answer for that?
(Q935421,P674,c(Q12737077))
Q935421
['Q935421', 'P674', {'concept': 'Q12737077'}]
['Treasure Island', 'characters', {'concept': 'occupation'}]
[]
Q1428628
SYSTEM
Long John Silver
Q1428628
(Q935421,P674,c(Q12737077))
action filter_type
action find
entity Q935421
relation P674
type Q12737077
[ANSWER] appears as a character in that television program
['Q935421', 'P674', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q935421 property:P674 ?e . ?e rdf:type ontology:Q12737077 }
Long John Silver
Long John Silver appears as a character in that television program
Long John Silver
action filter_type
action find
entity Treasure Island
relation characters
type occupation
['Treasure Island', 'characters', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Treasure_Island property:characters ?e . ?e rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P610
Q16889133
USER
Which is the highest peak of United Kingdom ?
(Q145,P610,c(Q16889133))
action filter_type
action find
entity Q145
relation P610
type Q16889133
['Q145', 'P610', {'concept': 'Q16889133'}]
SELECT DISTINCT ?o WHERE { resource:Q145 property:P610 ?o . ?o rdf:type ontology:Q16889133 }
United Kingdom
action filter_type
action find
entity United Kingdom
relation highest point
type class
['United Kingdom', 'highest point', {'concept': 'class'}]
SELECT DISTINCT ?o WHERE { resource:United_Kingdom property:highest_point ?o . ?o rdf:type ontology:class }
[]
class
Q104674
SYSTEM
Ben Nevis
Q104674
(Q145,P610,c(Q16889133))
action filter_type
action find
entity Q145
relation P610
type Q16889133
The highest peak of United Kingdom is Mount [ANSWER]
['Q145', 'P610', {'concept': 'Q16889133'}]
SELECT DISTINCT ?o WHERE { resource:Q145 property:P610 ?o . ?o rdf:type ontology:Q16889133 }
Ben Nevis
The highest peak of United Kingdom is Mount Ben Nevis
Ben Nevis
action filter_type
action find
entity United Kingdom
relation highest point
type class
['United Kingdom', 'highest point', {'concept': 'class'}]
SELECT DISTINCT ?o WHERE { resource:United_Kingdom property:highest_point ?o . ?o rdf:type ontology:class }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q23066
Q16889133
USER
And what about Cumbria?
(Q23066,P610,c(Q16889133))
action filter_type
action find
entity Q23066
relation P610
type Q16889133
['Q23066', 'P610', {'concept': 'Q16889133'}]
SELECT DISTINCT ?l WHERE { resource:Q23066 property:P610 ?l . ?l rdf:type ontology:Q16889133 }
Cumbria
action filter_type
action find
entity Cumbria
relation highest point
type class
['Cumbria', 'highest point', {'concept': 'class'}]
SELECT DISTINCT ?l WHERE { resource:Cumbria property:highest_point ?l . ?l rdf:type ontology:class }
[]
class
Q1146222
SYSTEM
Scafell Pike
Q1146222
(Q23066,P610,c(Q16889133))
action filter_type
action find
entity Q23066
relation P610
type Q16889133
[ANSWER]
['Q23066', 'P610', {'concept': 'Q16889133'}]
SELECT DISTINCT ?l WHERE { resource:Q23066 property:P610 ?l . ?l rdf:type ontology:Q16889133 }
Scafell Pike
Scafell Pike
action filter_type
action find
entity Cumbria
relation highest point
type class
['Cumbria', 'highest point', {'concept': 'class'}]
SELECT DISTINCT ?l WHERE { resource:Cumbria property:highest_point ?l . ?l rdf:type ontology:class }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q1146222 Q145
P17
Q15617994
USER
Is that class situated in United Kingdom ?
(Q1146222,P17,Q145)
action is_in
entity Q145
action find
entity Q1146222
relation P17
['Q1146222', 'P17', 'Q145']
ASK WHERE { resource:Q1146222 property:P17 resource:Q145 }
Scafell Pike United Kingdom
action is_in
entity United Kingdom
action find
entity Scafell Pike
relation country
['Scafell Pike', 'country', 'United Kingdom']
ASK WHERE { resource:Scafell_Pike property:country resource:United_Kingdom }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q1146222,P17,Q145)
action is_in
entity Q145
action find
entity Q1146222
relation P17
[ANSWER]
['Q1146222', 'P17', 'Q145']
ASK WHERE { resource:Q1146222 property:P17 resource:Q145 }
Yes
action is_in
entity United Kingdom
action find
entity Scafell Pike
relation country
['Scafell Pike', 'country', 'United Kingdom']
ASK WHERE { resource:Scafell_Pike property:country resource:United_Kingdom }
[]