Simple Question (Direct)
Simple Question
Q2118355
P21
Q290
USER
What is the sex of Simon Kuper ?
(Q2118355,P21,c(Q290))
action filter_type
action find
entity Q2118355
relation P21
type Q290
['Q2118355', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?w WHERE { resource:Q2118355 property:P21 ?w . ?w rdf:type ontology:Q290 }
Simon Kuper
action filter_type
action find
entity Simon Kuper
relation gender
type sex
['Simon Kuper', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?w WHERE { resource:Simon_Kuper property:gender ?w . ?w rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2118355,P21,c(Q290))
action filter_type
action find
entity Q2118355
relation P21
type Q290
[ANSWER]
['Q2118355', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?w WHERE { resource:Q2118355 property:P21 ?w . ?w rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity Simon Kuper
relation gender
type sex
['Simon Kuper', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?w WHERE { resource:Simon_Kuper property:gender ?w . ?w rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6581097
P136
Q502895
USER
Which people have that sex as genre ?
(c(Q502895),P136,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P136
type Q502895
[{'concept': 'Q502895'}, 'P136', 'Q6581097']
SELECT DISTINCT ?v WHERE { ?v property:P136 resource:Q6581097 . ?v rdf:type ontology:Q502895 }
male
action filter_type
action find_reverse
entity male
relation genre
type common name
[{'concept': 'common name'}, 'genre', 'male']
SELECT DISTINCT ?v WHERE { ?v property:genre resource:male . ?v rdf:type ontology:common_name }
[]
common name
Q313288 Q18221191 Q23766532
SYSTEM
Augustus Pugin, Alessandro Gregorio Capponi, Pierre Laviron
Q19796723 Q23766532 Q313288 Q18221191
(c(Q502895),P136,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P136
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P136', 'Q6581097']
SELECT DISTINCT ?v WHERE { ?v property:P136 resource:Q6581097 . ?v rdf:type ontology:Q502895 }
Francesc Xavier Avilés i Puigvert Pierre Laviron Augustus Pugin Alessandro Gregorio Capponi
Augustus Pugin Alessandro Gregorio Capponi Pierre Laviron
action filter_type
action find_reverse
entity male
relation genre
type common name
[{'concept': 'common name'}, 'genre', 'male']
SELECT DISTINCT ?v WHERE { ?v property:genre resource:male . ?v rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q16080418
P608
Q464980 Q1656682 Q502895
USER
How many people were presented at greater number of exhibitions or events than Alyce Frank ?
(c(Q502895),P608,c(Q464980)|c(Q1656682))
action count
action greater
action union
action find_tuple_counts
relation P608
type Q502895
type Q464980
action find_tuple_counts
relation P608
type Q502895
type Q1656682
action count
action filter_multi_types
action find
entity Q16080418
relation P608
type Q464980
type Q1656682
[{'concept': 'Q502895'}, 'P608', [{'concept': 'Q464980'}, {'concept': 'Q1656682'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?l ) AS ?o ) WHERE { { ?l rdf:type ontology:Q1656682 . ?n rdf:type ontology:Q502895 . ?n property:P608 ?l } UNION { ?n property:P608 ?l . ?n rdf:type ontology:Q502895 . ?l rdf:type ontology:Q464980 } } GROUP BY ?n } . FILTER ( ?o > ?s ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { resource:Q16080418 property:P608 ?v . { VALUES ( ?d ) { ( ontology:Q464980 ) ( ontology:Q1656682 ) } . ?v rdf:type ?d } } } }
Alyce Frank
action count
action greater
action union
action find_tuple_counts
relation exhibition history
type common name
type exhibition
action find_tuple_counts
relation exhibition history
type common name
type event
action count
action filter_multi_types
action find
entity Alyce Frank
relation exhibition history
type exhibition
type event
[{'concept': 'common name'}, 'exhibition history', [{'concept': 'exhibition'}, {'concept': 'event'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?l ) AS ?o ) WHERE { { ?l rdf:type ontology:event . ?n rdf:type ontology:common_name . ?n property:exhibition_history ?l } UNION { ?n property:exhibition_history ?l . ?n rdf:type ontology:common_name . ?l rdf:type ontology:exhibition } } GROUP BY ?n } . FILTER ( ?o > ?s ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { resource:Alyce_Frank property:exhibition_history ?v . { VALUES ( ?d ) { ( ontology:exhibition ) ( ontology:event ) } . ?v rdf:type ?d } } } }
[]
exhibition event common name
SYSTEM
6
Q70006 Q17455385 Q16062545 Q20888837 Q22815085 Q3335569
(c(Q502895),P608,c(Q464980)|c(Q1656682))
action count
action greater
action union
action find_tuple_counts
relation P608
type Q502895
type Q464980
action find_tuple_counts
relation P608
type Q502895
type Q1656682
action count
action filter_multi_types
action find
entity Q16080418
relation P608
type Q464980
type Q1656682
[ANSWER]
[{'concept': 'Q502895'}, 'P608', [{'concept': 'Q464980'}, {'concept': 'Q1656682'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?l ) AS ?o ) WHERE { { ?l rdf:type ontology:Q1656682 . ?n rdf:type ontology:Q502895 . ?n property:P608 ?l } UNION { ?n property:P608 ?l . ?n rdf:type ontology:Q502895 . ?l rdf:type ontology:Q464980 } } GROUP BY ?n } . FILTER ( ?o > ?s ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { resource:Q16080418 property:P608 ?v . { VALUES ( ?d ) { ( ontology:Q464980 ) ( ontology:Q1656682 ) } . ?v rdf:type ?d } } } }
Lotte Jacobi Jerry Cooke Alice Havers Angélique Bègue Georges Violet Nancy Elizabeth Prophet
6
action count
action greater
action union
action find_tuple_counts
relation exhibition history
type common name
type exhibition
action find_tuple_counts
relation exhibition history
type common name
type event
action count
action filter_multi_types
action find
entity Alyce Frank
relation exhibition history
type exhibition
type event
[{'concept': 'common name'}, 'exhibition history', [{'concept': 'exhibition'}, {'concept': 'event'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?l ) AS ?o ) WHERE { { ?l rdf:type ontology:event . ?n rdf:type ontology:common_name . ?n property:exhibition_history ?l } UNION { ?n property:exhibition_history ?l . ?n rdf:type ontology:common_name . ?l rdf:type ontology:exhibition } } GROUP BY ?n } . FILTER ( ?o > ?s ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { resource:Alyce_Frank property:exhibition_history ?v . { VALUES ( ?d ) { ( ontology:exhibition ) ( ontology:event ) } . ?v rdf:type ?d } } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q6196481
P608
Q464980 Q1656682 Q502895
USER
And how about Jim Love?
(c(Q502895),P608,c(Q464980)|c(Q1656682))
action count
action greater
action union
action find_tuple_counts
relation P608
type Q502895
type Q464980
action find_tuple_counts
relation P608
type Q502895
type Q1656682
action count
action filter_multi_types
action find
entity Q6196481
relation P608
type Q464980
type Q1656682
[{'concept': 'Q502895'}, 'P608', [{'concept': 'Q464980'}, {'concept': 'Q1656682'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?t ) AS ?z ) WHERE { ?t rdf:type ?e . VALUES ( ?e ) { ( ontology:Q464980 ) ( ontology:Q1656682 ) } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) WHERE { resource:Q6196481 property:P608 ?r . { { ?r rdf:type ontology:Q464980 } UNION { ?r rdf:type ontology:Q1656682 } } } } . FILTER ( ?z > ?g ) }
Jim Love
action count
action greater
action union
action find_tuple_counts
relation exhibition history
type common name
type exhibition
action find_tuple_counts
relation exhibition history
type common name
type event
action count
action filter_multi_types
action find
entity Jim Love
relation exhibition history
type exhibition
type event
[{'concept': 'common name'}, 'exhibition history', [{'concept': 'exhibition'}, {'concept': 'event'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?t ) AS ?z ) WHERE { ?t rdf:type ?e . VALUES ( ?e ) { ( ontology:exhibition ) ( ontology:event ) } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) WHERE { resource:Jim_Love property:exhibition_history ?r . { { ?r rdf:type ontology:exhibition } UNION { ?r rdf:type ontology:event } } } } . FILTER ( ?z > ?g ) }
[]
exhibition event common name
SYSTEM
6
Q70006 Q17455385 Q16062545 Q20888837 Q22815085 Q3335569
(c(Q502895),P608,c(Q464980)|c(Q1656682))
action count
action greater
action union
action find_tuple_counts
relation P608
type Q502895
type Q464980
action find_tuple_counts
relation P608
type Q502895
type Q1656682
action count
action filter_multi_types
action find
entity Q6196481
relation P608
type Q464980
type Q1656682
[ANSWER]
[{'concept': 'Q502895'}, 'P608', [{'concept': 'Q464980'}, {'concept': 'Q1656682'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?t ) AS ?z ) WHERE { ?t rdf:type ?e . VALUES ( ?e ) { ( ontology:Q464980 ) ( ontology:Q1656682 ) } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) WHERE { resource:Q6196481 property:P608 ?r . { { ?r rdf:type ontology:Q464980 } UNION { ?r rdf:type ontology:Q1656682 } } } } . FILTER ( ?z > ?g ) }
Lotte Jacobi Jerry Cooke Alice Havers Angélique Bègue Georges Violet Nancy Elizabeth Prophet
6
action count
action greater
action union
action find_tuple_counts
relation exhibition history
type common name
type exhibition
action find_tuple_counts
relation exhibition history
type common name
type event
action count
action filter_multi_types
action find
entity Jim Love
relation exhibition history
type exhibition
type event
[{'concept': 'common name'}, 'exhibition history', [{'concept': 'exhibition'}, {'concept': 'event'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?t ) AS ?z ) WHERE { ?t rdf:type ?e . VALUES ( ?e ) { ( ontology:exhibition ) ( ontology:event ) } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) WHERE { resource:Jim_Love property:exhibition_history ?r . { { ?r rdf:type ontology:exhibition } UNION { ?r rdf:type ontology:event } } } } . FILTER ( ?z > ?g ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q313288
P84
Q16970
USER
Which churches have their designs created by Augustus Pugin ?
(c(Q16970),P84,Q313288)
action filter_type
action find_reverse
entity Q313288
relation P84
type Q16970
[{'concept': 'Q16970'}, 'P84', 'Q313288']
SELECT DISTINCT ?i WHERE { ?i property:P84 resource:Q313288 . ?i rdf:type ontology:Q16970 }
Augustus Pugin
action filter_type
action find_reverse
entity Augustus Pugin
relation architect
type church
[{'concept': 'church'}, 'architect', 'Augustus Pugin']
SELECT DISTINCT ?i WHERE { ?i property:architect resource:Augustus_Pugin . ?i rdf:type ontology:church }
[]
church
Q1638891 Q1545350 Q1138085
SYSTEM
St Mary's Cathedral, Newcastle upon Tyne, Nottingham Cathedral, St Chad's Cathedral
Q1357895 Q20642155 Q1638891 Q1451262 Q1897809 Q1545350 Q1138066 Q1138085
(c(Q16970),P84,Q313288)
action filter_type
action find_reverse
entity Q313288
relation P84
type Q16970
[ANSWERS]
[{'concept': 'Q16970'}, 'P84', 'Q313288']
SELECT DISTINCT ?i WHERE { ?i property:P84 resource:Q313288 . ?i rdf:type ontology:Q16970 }
Northampton Cathedral St Mary's Cathedral, Hobart St Mary's Cathedral, Newcastle upon Tyne St George's Cathedral, Southwark St Mary's Cathedral, Killarney Nottingham Cathedral St. Aidan's Cathedral St Chad's Cathedral
St Mary's Cathedral, Newcastle upon Tyne Nottingham Cathedral St Chad's Cathedral
action filter_type
action find_reverse
entity Augustus Pugin
relation architect
type church
[{'concept': 'church'}, 'architect', 'Augustus Pugin']
SELECT DISTINCT ?i WHERE { ?i property:architect resource:Augustus_Pugin . ?i rdf:type ontology:church }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1638891 Q1545350 Q1138085
P1435
Q41176
USER
Which buildings are the heritage status of St Mary's Cathedral, Newcastle upon Tyne, Nottingham Cathedral and St Chad's Cathedral ?
(Q1638891,P1435,c(Q41176)) (Q1545350,P1435,c(Q41176)) (Q1138085,P1435,c(Q41176))
action union
action filter_type
action find
entity Q1638891
relation P1435
type Q41176
action filter_type
action find
entity Q1545350
relation P1435
type Q41176
action filter_type
action find
entity Q1138085
relation P1435
type Q41176
['Q1638891', 'P1435', {'concept': 'Q41176'}] ['Q1545350', 'P1435', {'concept': 'Q41176'}] ['Q1138085', 'P1435', {'concept': 'Q41176'}]
SELECT DISTINCT ?e WHERE { VALUES ( ?n ) { ( resource:Q1638891 ) ( resource:Q1545350 ) } . ?n property:P1435 ?e }
St Mary's Cathedral, Newcastle upon Tyne Nottingham Cathedral St Chad's Cathedral
action union
action filter_type
action find
entity St Mary's Cathedral, Newcastle upon Tyne
relation heritage status
type building
action filter_type
action find
entity Nottingham Cathedral
relation heritage status
type building
action filter_type
action find
entity St Chad's Cathedral
relation heritage status
type building
["St Mary's Cathedral, Newcastle upon Tyne", 'heritage status', {'concept': 'building'}] ['Nottingham Cathedral', 'heritage status', {'concept': 'building'}] ["St Chad's Cathedral", 'heritage status', {'concept': 'building'}]
SELECT DISTINCT ?e WHERE { VALUES ( ?n ) { ( resource:St_Mary's_Cathedral,_Newcastle_upon_Tyne ) ( resource:Nottingham_Cathedral ) } . ?n property:heritage_status ?e }
[]
building
Q15700818 Q15700831 Q15700831
SYSTEM
Grade I listed building for 1st, Grade II* listed building for 2nd, 3rd
Q15700818 Q15700831 Q15700834 Q15700831
(Q1638891,P1435,c(Q41176)) (Q1545350,P1435,c(Q41176)) (Q1138085,P1435,c(Q41176))
action union
action filter_type
action find
entity Q1638891
relation P1435
type Q41176
action filter_type
action find
entity Q1545350
relation P1435
type Q41176
action filter_type
action find
entity Q1138085
relation P1435
type Q41176
[ANSWERS]
['Q1638891', 'P1435', {'concept': 'Q41176'}] ['Q1545350', 'P1435', {'concept': 'Q41176'}] ['Q1138085', 'P1435', {'concept': 'Q41176'}]
SELECT DISTINCT ?e WHERE { VALUES ( ?n ) { ( resource:Q1638891 ) ( resource:Q1545350 ) } . ?n property:P1435 ?e }
Grade I listed building Grade II* listed building Grade II listed building Grade II* listed building
Grade I listed building Grade II* listed building Grade II* listed building
action union
action filter_type
action find
entity St Mary's Cathedral, Newcastle upon Tyne
relation heritage status
type building
action filter_type
action find
entity Nottingham Cathedral
relation heritage status
type building
action filter_type
action find
entity St Chad's Cathedral
relation heritage status
type building
["St Mary's Cathedral, Newcastle upon Tyne", 'heritage status', {'concept': 'building'}] ['Nottingham Cathedral', 'heritage status', {'concept': 'building'}] ["St Chad's Cathedral", 'heritage status', {'concept': 'building'}]
SELECT DISTINCT ?e WHERE { VALUES ( ?n ) { ( resource:St_Mary's_Cathedral,_Newcastle_upon_Tyne ) ( resource:Nottingham_Cathedral ) } . ?n property:heritage_status ?e }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q15700818
P17
Q15617994
USER
Which administrative territory does Grade I listed building belong to ?
(Q15700818,P17,c(Q15617994))
action filter_type
action find
entity Q15700818
relation P17
type Q15617994
['Q15700818', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q15700818 property:P17 ?i . ?i rdf:type ontology:Q15617994 }
Grade I listed building
action filter_type
action find
entity Grade I listed building
relation country
type designation for an administrative territorial entity
['Grade I listed building', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Grade_I_listed_building property:country ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q15700818,P17,c(Q15617994))
action filter_type
action find
entity Q15700818
relation P17
type Q15617994
[ANSWER]
['Q15700818', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q15700818 property:P17 ?i . ?i rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom
action filter_type
action find
entity Grade I listed building
relation country
type designation for an administrative territorial entity
['Grade I listed building', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Grade_I_listed_building property:country ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q145
P1313
Q895526
USER
Which authority organ is fulfilled by that administrative territory ?
(Q145,P1313,c(Q895526))
action filter_type
action find
entity Q145
relation P1313
type Q895526
['Q145', 'P1313', {'concept': 'Q895526'}]
SELECT DISTINCT ?g WHERE { resource:Q145 property:P1313 ?g . ?g rdf:type ontology:Q895526 }
United Kingdom
action filter_type
action find
entity United Kingdom
relation office held by head of government
type authority organ
['United Kingdom', 'office held by head of government', {'concept': 'authority organ'}]
SELECT DISTINCT ?g WHERE { resource:United_Kingdom property:office_held_by_head_of_government ?g . ?g rdf:type ontology:authority_organ }
[]
authority organ
Q14211
SYSTEM
Prime Minister of the United Kingdom
Q14211
(Q145,P1313,c(Q895526))
action filter_type
action find
entity Q145
relation P1313
type Q895526
[ANSWER]
['Q145', 'P1313', {'concept': 'Q895526'}]
SELECT DISTINCT ?g WHERE { resource:Q145 property:P1313 ?g . ?g rdf:type ontology:Q895526 }
Prime Minister of the United Kingdom
Prime Minister of the United Kingdom
action filter_type
action find
entity United Kingdom
relation office held by head of government
type authority organ
['United Kingdom', 'office held by head of government', {'concept': 'authority organ'}]
SELECT DISTINCT ?g WHERE { resource:United_Kingdom property:office_held_by_head_of_government ?g . ?g rdf:type ontology:authority_organ }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q145
P1532
Q502895
USER
Which people represent that administrative territory ?
(c(Q502895),P1532,Q14211)
action filter_type
action find_reverse
entity Q145
relation P1532
type Q502895
[{'concept': 'Q502895'}, 'P1532', 'Q14211']
SELECT DISTINCT ?n WHERE { ?n property:P1532 resource:Q145 . ?n rdf:type ontology:Q502895 }
United Kingdom
action filter_type
action find_reverse
entity United Kingdom
relation country for sport
type common name
[{'concept': 'common name'}, 'country for sport', 'Prime Minister of the United Kingdom']
SELECT DISTINCT ?n WHERE { ?n property:country_for_sport resource:United_Kingdom . ?n rdf:type ontology:common_name }
[]
common name
Q21402269 Q23899221 Q16019708
SYSTEM
Alison Wyeth, John Nuttall, Andy Holden
Q21402269 Q23801215 Q23933231 Q16570372 Q23839484 Q26464525 Q24689189 Q25841148 Q25712393 Q21858372 Q22679450 Q21858356 Q24055567 Q22159069 Q16197248 Q23899221 Q3489581 Q21675005 Q16019708 Q23907033 Q9140805 Q2849387 Q26217926 Q14914875 Q16210580 Q26217998 Q23010253 Q7815016 Q21808670 Q23834462 Q23838005
(c(Q502895),P1532,Q14211)
action filter_type
action find_reverse
entity Q145
relation P1532
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P1532', 'Q14211']
SELECT DISTINCT ?n WHERE { ?n property:P1532 resource:Q145 . ?n rdf:type ontology:Q502895 }
Alison Wyeth Birhan Dagne Geoff Saunders Kyle Langford Ray Middleton Colin Walker Bryony Page Elliot Giles Rachel Wallader Jacqui Agyepong Rod Finch Craig Winrow Tracey Morris Andrew Pearson Lesley-Ann Skeete John Nuttall Solomon Wariso Sonia McGeorge Andy Holden Simon Fairbrother Adelle Tracey Angela Tooby Ann Williams Nethaneel Mitchell-Blake Keri Lees Hugh Teape Stephi Douglas Tom Bosworth Donovan Reid Carol Tyson George Williams
Alison Wyeth John Nuttall Andy Holden
action filter_type
action find_reverse
entity United Kingdom
relation country for sport
type common name
[{'concept': 'common name'}, 'country for sport', 'Prime Minister of the United Kingdom']
SELECT DISTINCT ?n WHERE { ?n property:country_for_sport resource:United_Kingdom . ?n rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P530
Q1048835
USER
Which political territories have ambassadorial relations with United Kingdom ?
(c(Q1048835),P530,Q145)
action filter_type
action find
entity Q145
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q145']
SELECT DISTINCT ?w WHERE { resource:Q145 property:P530 ?w . ?w rdf:type ontology:Q1048835 }
United Kingdom
action filter_type
action find
entity United Kingdom
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'United Kingdom']
SELECT DISTINCT ?w WHERE { resource:United_Kingdom property:diplomatic_relation ?w . ?w rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16 Q408 Q183
SYSTEM
Canada, Australia, Germany
Q16 Q408 Q183
(c(Q1048835),P530,Q145)
action filter_type
action find
entity Q145
relation P530
type Q1048835
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', 'Q145']
SELECT DISTINCT ?w WHERE { resource:Q145 property:P530 ?w . ?w rdf:type ontology:Q1048835 }
Canada Australia Germany
Canada Australia Germany
action filter_type
action find
entity United Kingdom
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'United Kingdom']
SELECT DISTINCT ?w WHERE { resource:United_Kingdom property:diplomatic_relation ?w . ?w rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q16 Q408 Q183
P6
Q502895
USER
Which people do those political territories serve as the head of government for ?
(Q16,P6,c(Q502895)) (Q408,P6,c(Q502895)) (Q183,P6,c(Q502895))
action filter_type
action find
entity prev_answer
relation P6
type Q502895
['Q16', 'P6', {'concept': 'Q502895'}] ['Q408', 'P6', {'concept': 'Q502895'}] ['Q183', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q502895 . ?c property:P6 ?q . VALUES ( ?c ) { ( resource:Q16 ) ( resource:Q408 ) ( resource:Q183 ) } }
Canada Australia Germany
action filter_type
action find
entity prev_answer
relation head of government
type common name
['Canada', 'head of government', {'concept': 'common name'}] ['Australia', 'head of government', {'concept': 'common name'}] ['Germany', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:common_name . ?c property:head_of_government ?q . VALUES ( ?c ) { ( resource:Canada ) ( resource:Australia ) ( resource:Germany ) } }
[]
common name
Q2492 Q2514 Q567
SYSTEM
Konrad Adenauer, Willy Brandt, Angela Merkel
Q3099714 Q206 Q128708 Q128702 Q51330 Q23386 Q152666 Q314016 Q23352 Q927550 Q23379 Q269372 Q23358 Q43135 Q23333 Q315979 Q41563 Q348577 Q242654 Q356411 Q356230 Q370926 Q313805 Q370966 Q312722 Q23369 Q23342 Q23347 Q23362 Q214438 Q356261 Q23375 Q459146 Q2492 Q2518 Q2530 Q2496 Q2514 Q2516 Q2571 Q2512 Q567
(Q16,P6,c(Q502895)) (Q408,P6,c(Q502895)) (Q183,P6,c(Q502895))
action filter_type
action find
entity prev_answer
relation P6
type Q502895
[ANSWERS]
['Q16', 'P6', {'concept': 'Q502895'}] ['Q408', 'P6', {'concept': 'Q502895'}] ['Q183', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q502895 . ?c property:P6 ?q . VALUES ( ?c ) { ( resource:Q16 ) ( resource:Q408 ) ( resource:Q183 ) } }
Justin Trudeau Stephen Harper Alexander Mackenzie John A. Macdonald John Howard John McEwen Billy Hughes Andrew Fisher George Houstoun Reid Malcolm Turnbull Ben Chifley Bob Hawke Stanley Bruce Kevin Rudd Gough Whitlam Malcolm Fraser Julia Gillard Tony Abbott Paul Keating John Gorton Joseph Cook Earle Page Alfred Deakin Joseph Lyons Harold Holt Arthur Fadden Edmund Barton Chris Watson James Scullin Robert Menzies William McMahon John Curtin Frank Forde Konrad Adenauer Helmut Kohl Gerhard Schröder Ludwig Erhard Willy Brandt Helmut Schmidt Walter Scheel Kurt Georg Kiesinger Angela Merkel
Konrad Adenauer Willy Brandt Angela Merkel
action filter_type
action find
entity prev_answer
relation head of government
type common name
['Canada', 'head of government', {'concept': 'common name'}] ['Australia', 'head of government', {'concept': 'common name'}] ['Germany', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:common_name . ?c property:head_of_government ?q . VALUES ( ?c ) { ( resource:Canada ) ( resource:Australia ) ( resource:Germany ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16
P1433
Q2342494
USER
Which collectable was published in Canada ?
(c(Q2342494),P1433,Q16)
action filter_type
action find_reverse
entity Q16
relation P1433
type Q2342494
[{'concept': 'Q2342494'}, 'P1433', 'Q16']
SELECT DISTINCT ?q WHERE { ?q property:P1433 resource:Q16 . ?q rdf:type ontology:Q2342494 }
Canada
action filter_type
action find_reverse
entity Canada
relation published in
type collectable
[{'concept': 'collectable'}, 'published in', 'Canada']
SELECT DISTINCT ?q WHERE { ?q property:published_in resource:Canada . ?q rdf:type ontology:collectable }
[]
collectable
Q869725
SYSTEM
The Prince and the Pauper
Q869725
(c(Q2342494),P1433,Q16)
action filter_type
action find_reverse
entity Q16
relation P1433
type Q2342494
[ANSWER]
[{'concept': 'Q2342494'}, 'P1433', 'Q16']
SELECT DISTINCT ?q WHERE { ?q property:P1433 resource:Q16 . ?q rdf:type ontology:Q2342494 }
The Prince and the Pauper
The Prince and the Pauper
action filter_type
action find_reverse
entity Canada
relation published in
type collectable
[{'concept': 'collectable'}, 'published in', 'Canada']
SELECT DISTINCT ?q WHERE { ?q property:published_in resource:Canada . ?q rdf:type ontology:collectable }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16
P122
Q1307214
USER
What best describes the type of government of Canada ?
(Q16,P122,c(Q1307214))
action filter_type
action find
entity Q16
relation P122
type Q1307214
['Q16', 'P122', {'concept': 'Q1307214'}]
SELECT DISTINCT ?l WHERE { resource:Q16 property:P122 ?l . ?l rdf:type ontology:Q1307214 }
Canada
action filter_type
action find
entity Canada
relation basic form of government
type form of government
['Canada', 'basic form of government', {'concept': 'form of government'}]
SELECT DISTINCT ?l WHERE { resource:Canada property:basic_form_of_government ?l . ?l rdf:type ontology:form_of_government }
[]
form of government
Q43702
SYSTEM
federation
Q43702
(Q16,P122,c(Q1307214))
action filter_type
action find
entity Q16
relation P122
type Q1307214
[ANSWER]
['Q16', 'P122', {'concept': 'Q1307214'}]
SELECT DISTINCT ?l WHERE { resource:Q16 property:P122 ?l . ?l rdf:type ontology:Q1307214 }
federation
federation
action filter_type
action find
entity Canada
relation basic form of government
type form of government
['Canada', 'basic form of government', {'concept': 'form of government'}]
SELECT DISTINCT ?l WHERE { resource:Canada property:basic_form_of_government ?l . ?l rdf:type ontology:form_of_government }
[]