Simple Question (Direct)
Simple Question
Q12211520
P108
Q3918
USER
Which university is the workplace of Laurence Dudley Stamp ?
(Q12211520,P108,c(Q3918))
action filter_type
action find
entity Q12211520
relation P108
type Q3918
['Q12211520', 'P108', {'concept': 'Q3918'}]
SELECT DISTINCT ?a WHERE { resource:Q12211520 property:P108 ?a . ?a rdf:type ontology:Q3918 }
Laurence Dudley Stamp
action filter_type
action find
entity Laurence Dudley Stamp
relation employer
type university
['Laurence Dudley Stamp', 'employer', {'concept': 'university'}]
SELECT DISTINCT ?a WHERE { resource:Laurence_Dudley_Stamp property:employer ?a . ?a rdf:type ontology:university }
[]
university
Q174570
SYSTEM
London School of Economics
Q174570
(Q12211520,P108,c(Q3918))
action filter_type
action find
entity Q12211520
relation P108
type Q3918
[ANSWER] is the workplace of Laurence Dudley Stamp
['Q12211520', 'P108', {'concept': 'Q3918'}]
SELECT DISTINCT ?a WHERE { resource:Q12211520 property:P108 ?a . ?a rdf:type ontology:Q3918 }
London School of Economics
London School of Economics is the workplace of Laurence Dudley Stamp
London School of Economics
action filter_type
action find
entity Laurence Dudley Stamp
relation employer
type university
['Laurence Dudley Stamp', 'employer', {'concept': 'university'}]
SELECT DISTINCT ?a WHERE { resource:Laurence_Dudley_Stamp property:employer ?a . ?a rdf:type ontology:university }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q174570
P159
Q56061
USER
Which administrative territory is the head office of that university ?
(Q174570,P159,c(Q56061))
action filter_type
action find
entity Q174570
relation P159
type Q56061
['Q174570', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q174570 property:P159 ?o . ?o rdf:type ontology:Q56061 }
London School of Economics
action filter_type
action find
entity London School of Economics
relation headquarters location
type administrative territorial entity
['London School of Economics', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:London_School_of_Economics property:headquarters_location ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q84
SYSTEM
London
Q84
(Q174570,P159,c(Q56061))
action filter_type
action find
entity Q174570
relation P159
type Q56061
[ANSWER] is the head office of that university
['Q174570', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q174570 property:P159 ?o . ?o rdf:type ontology:Q56061 }
London
London is the head office of that university
London
action filter_type
action find
entity London School of Economics
relation headquarters location
type administrative territorial entity
['London School of Economics', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:London_School_of_Economics property:headquarters_location ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1153170 Q12211520
P27
Q15617994
USER
Which administrative territories are Laurence Dudley Stamp or Karel Goeyvaerts an inhabitant of ?
OR((Q12211520,P27,c(Q15617994)), (Q1153170,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q12211520
relation P27
action find
entity Q1153170
relation P27
type Q15617994
{'OR': [['Q12211520', 'P27', {'concept': 'Q15617994'}], ['Q1153170', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q12211520 property:P27 ?g } UNION { resource:Q1153170 property:P27 ?g } } . ?g rdf:type ontology:Q15617994 }
Karel Goeyvaerts Laurence Dudley Stamp
action filter_type
action union
action find
entity Laurence Dudley Stamp
relation country of citizenship
action find
entity Karel Goeyvaerts
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Laurence Dudley Stamp', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Karel Goeyvaerts', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Laurence_Dudley_Stamp property:country_of_citizenship ?g } UNION { resource:Karel_Goeyvaerts property:country_of_citizenship ?g } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q31 Q145
SYSTEM
Belgium, United Kingdom
Q31 Q145
OR((Q12211520,P27,c(Q15617994)), (Q1153170,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q12211520
relation P27
action find
entity Q1153170
relation P27
type Q15617994
[ANSWERS] are Laurence Dudley Stamp or Karel Goeyvaerts an inhabitant of
{'OR': [['Q12211520', 'P27', {'concept': 'Q15617994'}], ['Q1153170', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q12211520 property:P27 ?g } UNION { resource:Q1153170 property:P27 ?g } } . ?g rdf:type ontology:Q15617994 }
Belgium United Kingdom
Belgium and United Kingdom are Laurence Dudley Stamp or Karel Goeyvaerts an inhabitant of
Belgium United Kingdom
action filter_type
action union
action find
entity Laurence Dudley Stamp
relation country of citizenship
action find
entity Karel Goeyvaerts
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Laurence Dudley Stamp', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Karel Goeyvaerts', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Laurence_Dudley_Stamp property:country_of_citizenship ?g } UNION { resource:Karel_Goeyvaerts property:country_of_citizenship ?g } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1153170
P20
Q56061
USER
Where did Karel Goeyvaerts die?
(Q31,P20,c(Q56061)) (Q145,P20,c(Q56061))
action filter_type
action find
entity Q1153170
relation P20
type Q56061
['Q31', 'P20', {'concept': 'Q56061'}] ['Q145', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q1153170 property:P20 ?t . ?t rdf:type ontology:Q56061 }
Karel Goeyvaerts
action filter_type
action find
entity Karel Goeyvaerts
relation place of death
type administrative territorial entity
['Belgium', 'place of death', {'concept': 'administrative territorial entity'}] ['United Kingdom', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Karel_Goeyvaerts property:place_of_death ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q12892
SYSTEM
Antwerp
Q12892
(Q31,P20,c(Q56061)) (Q145,P20,c(Q56061))
action filter_type
action find
entity Q1153170
relation P20
type Q56061
Karel Goeyvaerts died in [ANSWER]
['Q31', 'P20', {'concept': 'Q56061'}] ['Q145', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q1153170 property:P20 ?t . ?t rdf:type ontology:Q56061 }
Antwerp
Karel Goeyvaerts died in Antwerp
Antwerp
action filter_type
action find
entity Karel Goeyvaerts
relation place of death
type administrative territorial entity
['Belgium', 'place of death', {'concept': 'administrative territorial entity'}] ['United Kingdom', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Karel_Goeyvaerts property:place_of_death ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q174570
P485
Q502895
USER
Which people have their archives located at London School of Economics ?
(c(Q502895),P485,Q174570)
action filter_type
action find_reverse
entity Q174570
relation P485
type Q502895
[{'concept': 'Q502895'}, 'P485', 'Q174570']
SELECT DISTINCT ?r WHERE { ?r property:P485 resource:Q174570 . ?r rdf:type ontology:Q502895 }
London School of Economics
action filter_type
action find_reverse
entity London School of Economics
relation archives at
type common name
[{'concept': 'common name'}, 'archives at', 'London School of Economics']
SELECT DISTINCT ?r WHERE { ?r property:archives_at resource:London_School_of_Economics . ?r rdf:type ontology:common_name }
[]
common name
Q225863 Q4947472
SYSTEM
Josephine Butler, Emily Faithfull
Q225863 Q4947472
(c(Q502895),P485,Q174570)
action filter_type
action find_reverse
entity Q174570
relation P485
type Q502895
[ANSWERS] have their archives located at London School of Economics
[{'concept': 'Q502895'}, 'P485', 'Q174570']
SELECT DISTINCT ?r WHERE { ?r property:P485 resource:Q174570 . ?r rdf:type ontology:Q502895 }
Josephine Butler Emily Faithfull
Josephine Butler and Emily Faithfull have their archives located at London School of Economics
Josephine Butler Emily Faithfull
action filter_type
action find_reverse
entity London School of Economics
relation archives at
type common name
[{'concept': 'common name'}, 'archives at', 'London School of Economics']
SELECT DISTINCT ?r WHERE { ?r property:archives_at resource:London_School_of_Economics . ?r rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q225863
P50
Q571
USER
Which book was written by that person ?
(c(Q571),P50,Q225863)
action filter_type
action find_reverse
entity Q225863
relation P50
type Q571
[{'concept': 'Q571'}, 'P50', 'Q225863']
SELECT DISTINCT ?l WHERE { ?l property:P50 resource:Q225863 . ?l rdf:type ontology:Q571 }
Josephine Butler
action filter_type
action find_reverse
entity Josephine Butler
relation author
type book
[{'concept': 'book'}, 'author', 'Josephine Butler']
SELECT DISTINCT ?l WHERE { ?l property:author resource:Josephine_Butler . ?l rdf:type ontology:book }
[]
book
Clarification for simple ques.
Q4947472
SYSTEM
Did you mean Emily Faithfull ?
Q225863 Q4947472
(c(Q571),P50,Q225863) (c(Q571),P50,Q4947472)
[ANSWER]
[{'concept': 'Q571'}, 'P50', 'Q225863'] [{'concept': 'Q571'}, 'P50', 'Q4947472']
SELECT DISTINCT ?l WHERE { ?l property:P50 resource:Q225863 . ?l rdf:type ontology:Q571 }
Josephine Butler Emily Faithfull
Did you mean Emily Faithfull ?
Emily Faithfull
[{'concept': 'book'}, 'author', 'Josephine Butler'] [{'concept': 'book'}, 'author', 'Emily Faithfull']
SELECT DISTINCT ?l WHERE { ?l property:author resource:Josephine_Butler . ?l rdf:type ontology:book }
[]
Simple Question (Coreferenced)
USER
No, I meant Josephine Butler. Could you tell me the answer for that?
(c(Q571),P50,Q225863)
Q225863
[{'concept': 'Q571'}, 'P50', 'Q225863']
[{'concept': 'book'}, 'author', 'Josephine Butler']
[]
Q22668352
SYSTEM
The Education and Employment of Women
Q22668352
(c(Q571),P50,Q225863)
action filter_type
action find_reverse
entity Q225863
relation P50
type Q571
The [ANSWER] was written by that person
[{'concept': 'Q571'}, 'P50', 'Q225863']
SELECT DISTINCT ?l WHERE { ?l property:P50 resource:Q225863 . ?l rdf:type ontology:Q571 }
The Education and Employment of Women
The The Education and Employment of Women was written by that person
The Education and Employment of Women
action filter_type
action find_reverse
entity Josephine Butler
relation author
type book
[{'concept': 'book'}, 'author', 'Josephine Butler']
SELECT DISTINCT ?l WHERE { ?l property:author resource:Josephine_Butler . ?l rdf:type ontology:book }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q225863
P172
Q2472587
USER
What is the ethnicity of Josephine Butler ?
(Q225863,P172,c(Q2472587))
action filter_type
action find
entity Q225863
relation P172
type Q2472587
['Q225863', 'P172', {'concept': 'Q2472587'}]
SELECT DISTINCT ?b WHERE { resource:Q225863 property:P172 ?b . ?b rdf:type ontology:Q2472587 }
Josephine Butler
action filter_type
action find
entity Josephine Butler
relation ethnic group
type people
['Josephine Butler', 'ethnic group', {'concept': 'people'}]
SELECT DISTINCT ?b WHERE { resource:Josephine_Butler property:ethnic_group ?b . ?b rdf:type ontology:people }
[]
people
Q7994501
SYSTEM
White British
Q7994501
(Q225863,P172,c(Q2472587))
action filter_type
action find
entity Q225863
relation P172
type Q2472587
The ethnicity of Josephine Butler is the [ANSWER]
['Q225863', 'P172', {'concept': 'Q2472587'}]
SELECT DISTINCT ?b WHERE { resource:Q225863 property:P172 ?b . ?b rdf:type ontology:Q2472587 }
White British
The ethnicity of Josephine Butler is the White British
White British
action filter_type
action find
entity Josephine Butler
relation ethnic group
type people
['Josephine Butler', 'ethnic group', {'concept': 'people'}]
SELECT DISTINCT ?b WHERE { resource:Josephine_Butler property:ethnic_group ?b . ?b rdf:type ontology:people }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q225863
P26
Q502895
USER
Who is married to that one ?
(Q7994501,P26,c(Q502895))
action filter_type
action find
entity Q225863
relation P26
type Q502895
['Q7994501', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . resource:Q225863 property:P26 ?a }
Josephine Butler
action filter_type
action find
entity Josephine Butler
relation spouse
type common name
['White British', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . resource:Josephine_Butler property:spouse ?a }
[]
common name
Q5537497
SYSTEM
George Butler
Q5537497
(Q7994501,P26,c(Q502895))
action filter_type
action find
entity Q225863
relation P26
type Q502895
[ANSWER] is married to that one
['Q7994501', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . resource:Q225863 property:P26 ?a }
George Butler
George Butler is married to that one
George Butler
action filter_type
action find
entity Josephine Butler
relation spouse
type common name
['White British', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . resource:Josephine_Butler property:spouse ?a }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments are played by atleast 1389 people ?
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1389
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?i ) WHERE { FILTER ( ?v >= 1389 ) . { SELECT DISTINCT ?z ( COUNT ( ?f ) AS ?v ) WHERE { ?z rdf:type ontology:Q34379 . ?f rdf:type ontology:Q502895 . ?f property:P1303 ?z } GROUP BY ?z } }
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1389
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?i ) WHERE { FILTER ( ?v >= 1389 ) . { SELECT DISTINCT ?z ( COUNT ( ?f ) AS ?v ) WHERE { ?z rdf:type ontology:musical_instrument . ?f rdf:type ontology:common_name . ?f property:instrument ?z } GROUP BY ?z } }
[]
musical instrument common name
SYSTEM
6
Q46185 Q5994 Q8338 Q8355 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1389
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?i ) WHERE { FILTER ( ?v >= 1389 ) . { SELECT DISTINCT ?z ( COUNT ( ?f ) AS ?v ) WHERE { ?z rdf:type ontology:Q34379 . ?f rdf:type ontology:Q502895 . ?f property:P1303 ?z } GROUP BY ?z } }
bass guitar piano trumpet violin organ drum kit
6
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1389
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?i ) WHERE { FILTER ( ?v >= 1389 ) . { SELECT DISTINCT ?z ( COUNT ( ?f ) AS ?v ) WHERE { ?z rdf:type ontology:musical_instrument . ?f rdf:type ontology:common_name . ?f property:instrument ?z } GROUP BY ?z } }
[]