Simple Question (Direct)
Simple Question
Q311482
P26
Q502895
USER
Who is married to Malik-Shah I ?
(Q311482,P26,c(Q502895))
action filter_type
action find
entity Q311482
relation P26
type Q502895
['Q311482', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q311482 property:P26 ?t . ?t rdf:type ontology:Q502895 }
Malik-Shah I
action filter_type
action find
entity Malik-Shah I
relation spouse
type common name
['Malik-Shah I', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Malik-Shah_I property:spouse ?t . ?t rdf:type ontology:common_name }
[]
common name
Q5948034
SYSTEM
Terken Khatun
Q5948034
(Q311482,P26,c(Q502895))
action filter_type
action find
entity Q311482
relation P26
type Q502895
[ANSWER] is married to Malik-Shah I
['Q311482', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q311482 property:P26 ?t . ?t rdf:type ontology:Q502895 }
Terken Khatun
Terken Khatun is married to Malik-Shah I
Terken Khatun
action filter_type
action find
entity Malik-Shah I
relation spouse
type common name
['Malik-Shah I', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Malik-Shah_I property:spouse ?t . ?t rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5948034
P22
Q502895
USER
Who was the father of that one ?
(Q5948034,P22,c(Q502895))
action filter_type
action find
entity Q5948034
relation P22
type Q502895
['Q5948034', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q5948034 property:P22 ?g . ?g rdf:type ontology:Q502895 }
Terken Khatun
action filter_type
action find
entity Terken Khatun
relation father
type common name
['Terken Khatun', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Terken_Khatun property:father ?g . ?g rdf:type ontology:common_name }
[]
common name
Q12823040
SYSTEM
Böritigin
Q12823040
(Q5948034,P22,c(Q502895))
action filter_type
action find
entity Q5948034
relation P22
type Q502895
The father of that one was the [ANSWER]
['Q5948034', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q5948034 property:P22 ?g . ?g rdf:type ontology:Q502895 }
Böritigin
The father of that one was the Böritigin
Böritigin
action filter_type
action find
entity Terken Khatun
relation father
type common name
['Terken Khatun', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Terken_Khatun property:father ?g . ?g rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q3639322 Q5948034
P22
Q502895
USER
Or Biagio Bellotti?
OR((Q5948034,P22,c(Q502895)), (Q3639322,P22,c(Q502895)))
action filter_type
action union
action find
entity Q5948034
relation P22
action find
entity Q3639322
relation P22
type Q502895
{'OR': [['Q5948034', 'P22', {'concept': 'Q502895'}], ['Q3639322', 'P22', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q502895 . { { resource:Q5948034 property:P22 ?u } UNION { resource:Q3639322 property:P22 ?u } } }
Biagio Bellotti Terken Khatun
action filter_type
action union
action find
entity Terken Khatun
relation father
action find
entity Biagio Bellotti
relation father
type common name
{'OR': [['Terken Khatun', 'father', {'concept': 'common name'}], ['Biagio Bellotti', 'father', {'concept': 'common name'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:common_name . { { resource:Terken_Khatun property:father ?u } UNION { resource:Biagio_Bellotti property:father ?u } } }
[]
common name
Q12823040 Q20967070
SYSTEM
Böritigin, Leopoldo Bellotti
Q12823040 Q20967070
OR((Q5948034,P22,c(Q502895)), (Q3639322,P22,c(Q502895)))
action filter_type
action union
action find
entity Q5948034
relation P22
action find
entity Q3639322
relation P22
type Q502895
[ANSWERS]
{'OR': [['Q5948034', 'P22', {'concept': 'Q502895'}], ['Q3639322', 'P22', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q502895 . { { resource:Q5948034 property:P22 ?u } UNION { resource:Q3639322 property:P22 ?u } } }
Böritigin Leopoldo Bellotti
Böritigin Leopoldo Bellotti
action filter_type
action union
action find
entity Terken Khatun
relation father
action find
entity Biagio Bellotti
relation father
type common name
{'OR': [['Terken Khatun', 'father', {'concept': 'common name'}], ['Biagio Bellotti', 'father', {'concept': 'common name'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:common_name . { { resource:Terken_Khatun property:father ?u } UNION { resource:Biagio_Bellotti property:father ?u } } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q20641876 Q311482
P22
Q502895
USER
Which people were the father of Malik-Shah I or Émilie-Élisabeth Reboul ?
OR((Q311482,P22,c(Q502895)), (Q20641876,P22,c(Q502895)))
action filter_type
action union
action find
entity Q311482
relation P22
action find
entity Q20641876
relation P22
type Q502895
{'OR': [['Q311482', 'P22', {'concept': 'Q502895'}], ['Q20641876', 'P22', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q311482 property:P22 ?j } UNION { resource:Q20641876 property:P22 ?j } } . ?j rdf:type ontology:Q502895 }
Émilie-Élisabeth Reboul Malik-Shah I
action filter_type
action union
action find
entity Malik-Shah I
relation father
action find
entity Émilie-Élisabeth Reboul
relation father
type common name
{'OR': [['Malik-Shah I', 'father', {'concept': 'common name'}], ['Émilie-Élisabeth Reboul', 'father', {'concept': 'common name'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Malik-Shah_I property:father ?j } UNION { resource:Émilie-Élisabeth_Reboul property:father ?j } } . ?j rdf:type ontology:common_name }
[]
common name
Q200193 Q20641873
SYSTEM
Alp Arslan, Auguste-Marcel Reboul
Q200193 Q20641873
OR((Q311482,P22,c(Q502895)), (Q20641876,P22,c(Q502895)))
action filter_type
action union
action find
entity Q311482
relation P22
action find
entity Q20641876
relation P22
type Q502895
[ANSWERS] were the father of Malik-Shah I or Émilie-Élisabeth Reboul
{'OR': [['Q311482', 'P22', {'concept': 'Q502895'}], ['Q20641876', 'P22', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q311482 property:P22 ?j } UNION { resource:Q20641876 property:P22 ?j } } . ?j rdf:type ontology:Q502895 }
Alp Arslan Auguste-Marcel Reboul
Alp Arslan and Auguste-Marcel Reboul were the father of Malik-Shah I or Émilie-Élisabeth Reboul
Alp Arslan Auguste-Marcel Reboul
action filter_type
action union
action find
entity Malik-Shah I
relation father
action find
entity Émilie-Élisabeth Reboul
relation father
type common name
{'OR': [['Malik-Shah I', 'father', {'concept': 'common name'}], ['Émilie-Élisabeth Reboul', 'father', {'concept': 'common name'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Malik-Shah_I property:father ?j } UNION { resource:Émilie-Élisabeth_Reboul property:father ?j } } . ?j rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments can atleast 1901 people perform with ?
(c(Q502895),P1303,c(Q34379))
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1901
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?e ) AS ?w ) WHERE { ?e property:P1303 ?f . ?f rdf:type ontology:Q34379 . ?e rdf:type ontology:Q502895 } GROUP BY ?f } . FILTER ( ?w >= 1901 ) }
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1901
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?e ) AS ?w ) WHERE { ?e property:instrument ?f . ?f rdf:type ontology:musical_instrument . ?e rdf:type ontology:common_name } GROUP BY ?f } . FILTER ( ?w >= 1901 ) }
[]
musical instrument common name
Q5994 Q8355 Q1444
SYSTEM
piano, violin, organ
Q5994 Q8355 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1901
[ANSWERS] can atleast 1901 people perform with
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?e ) AS ?w ) WHERE { ?e property:P1303 ?f . ?f rdf:type ontology:Q34379 . ?e rdf:type ontology:Q502895 } GROUP BY ?f } . FILTER ( ?w >= 1901 ) }
piano violin organ drum kit
Piano, violin and organ can atleast 1901 people perform with
piano violin organ
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1901
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?e ) AS ?w ) WHERE { ?e property:instrument ?f . ?f rdf:type ontology:musical_instrument . ?e rdf:type ontology:common_name } GROUP BY ?f } . FILTER ( ?w >= 1901 ) }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P870
Q34379 Q9748 Q15850590
USER
Which musical instruments were used in the composition of around the same number of concertoes or theatrical genres as that musical instrument ?
(c(Q9748)|c(Q15850590),P870,c(Q34379))
[[{'concept': 'Q9748'}, {'concept': 'Q15850590'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ?y WHERE { { { ?z property:Q617028 ?y } UNION { ?x property:Q617028 ?y } } . ?z rdf:type ontology:Q9748 . ?y rdf:type ontology:Q34379 . ?x rdf:type ontology:Q15850590 }
[[{'concept': 'concerto'}, {'concept': 'theatrical genre'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ?y WHERE { { { ?z property:instrumentation ?y } UNION { ?x property:instrumentation ?y } } . ?z rdf:type ontology:concerto . ?y rdf:type ontology:musical_instrument . ?x rdf:type ontology:theatrical_genre }
[]
musical instrument concerto theatrical genre
Comparative|More/Less|Mult. entity type|Clarification
Q8355
SYSTEM
Did you mean violin ?
(c(Q9748)|c(Q15850590),P870,c(Q34379))
[ANSWER]
[[{'concept': 'Q9748'}, {'concept': 'Q15850590'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ?y WHERE { { { ?z property:Q617028 ?y } UNION { ?x property:Q617028 ?y } } . ?z rdf:type ontology:Q9748 . ?y rdf:type ontology:Q34379 . ?x rdf:type ontology:Q15850590 }
Did you mean violin ?
violin
[[{'concept': 'concerto'}, {'concept': 'theatrical genre'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ?y WHERE { { { ?z property:instrumentation ?y } UNION { ?x property:instrumentation ?y } } . ?z rdf:type ontology:concerto . ?y rdf:type ontology:musical_instrument . ?x rdf:type ontology:theatrical_genre }
[]
Comparative Reasoning (All)
USER
Yes
(c(Q9748)|c(Q15850590),P870,c(Q34379))
[[{'concept': 'Q9748'}, {'concept': 'Q15850590'}], 'P870', {'concept': 'Q34379'}]
[[{'concept': 'concerto'}, {'concept': 'theatrical genre'}], 'instrumentation', {'concept': 'musical instrument'}]
[]
Q5994 Q8355
SYSTEM
piano, violin
Q5994 Q8355
(c(Q9748)|c(Q15850590),P870,c(Q34379))
[ANSWERS] were used in the composition of around the same number of concertoes or theatrical genres as that musical instrument
[[{'concept': 'Q9748'}, {'concept': 'Q15850590'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ?y WHERE { { { ?z property:Q617028 ?y } UNION { ?x property:Q617028 ?y } } . ?z rdf:type ontology:Q9748 . ?y rdf:type ontology:Q34379 . ?x rdf:type ontology:Q15850590 }
piano violin
Piano and violin were used in the composition of around the same number of concertoes or theatrical genres as that musical instrument
piano violin
[[{'concept': 'concerto'}, {'concept': 'theatrical genre'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ?y WHERE { { { ?z property:instrumentation ?y } UNION { ?x property:instrumentation ?y } } . ?z rdf:type ontology:concerto . ?y rdf:type ontology:musical_instrument . ?x rdf:type ontology:theatrical_genre }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q11907540
P1303
Q502895
USER
Does Bafi play those musical instruments ?
(Q11907540,P1303,Q5994) (Q11907540,P1303,Q8355)
action is_in
entity prev_answer
action find
entity Q11907540
relation P1303
['Q11907540', 'P1303', 'Q5994'] ['Q11907540', 'P1303', 'Q8355']
ASK WHERE { resource:Q11907540 property:P1303 ?w . VALUES ( ?w ) { ( resource:Q5994 ) ( resource:Q8355 ) } }
Bafi
action is_in
entity prev_answer
action find
entity Bafi
relation instrument
['Bafi', 'instrument', 'piano'] ['Bafi', 'instrument', 'violin']
ASK WHERE { resource:Bafi property:instrument ?w . VALUES ( ?w ) { ( resource:piano ) ( resource:violin ) } }
[]
common name
SYSTEM
NO
(Q11907540,P1303,Q5994) (Q11907540,P1303,Q8355)
action is_in
entity prev_answer
action find
entity Q11907540
relation P1303
[ANSWER]
['Q11907540', 'P1303', 'Q5994'] ['Q11907540', 'P1303', 'Q8355']
ASK WHERE { resource:Q11907540 property:P1303 ?w . VALUES ( ?w ) { ( resource:Q5994 ) ( resource:Q8355 ) } }
No
action is_in
entity prev_answer
action find
entity Bafi
relation instrument
['Bafi', 'instrument', 'piano'] ['Bafi', 'instrument', 'violin']
ASK WHERE { resource:Bafi property:instrument ?w . VALUES ( ?w ) { ( resource:piano ) ( resource:violin ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P870
Q34379 Q188451 Q9748
USER
How many musical instruments are the instrumentations used in exactly 149 music genres and concertoes ?
(c(Q188451)|c(Q9748),P870,c(Q34379))
action count
action equal
action union
action find_reverse_tuple_counts
relation P870
type Q34379
type Q188451
action find_reverse_tuple_counts
relation P870
type Q34379
type Q9748
value 149
[[{'concept': 'Q188451'}, {'concept': 'Q9748'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?n ) ?v WHERE { { ?u property:P870 ?v . ?v rdf:type ontology:Q34379 . ?u rdf:type ontology:Q9748 } UNION { ?u property:P870 ?v . ?v rdf:type ontology:Q34379 . ?u rdf:type ontology:Q188451 } } GROUP BY ?v } . FILTER ( ?n = 149 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type music genre
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type concerto
value 149
[[{'concept': 'music genre'}, {'concept': 'concerto'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?n ) ?v WHERE { { ?u property:instrumentation ?v . ?v rdf:type ontology:musical_instrument . ?u rdf:type ontology:concerto } UNION { ?u property:instrumentation ?v . ?v rdf:type ontology:musical_instrument . ?u rdf:type ontology:music_genre } } GROUP BY ?v } . FILTER ( ?n = 149 ) }
[]
musical instrument music genre concerto
SYSTEM
2
Q5994 Q8355
(c(Q188451)|c(Q9748),P870,c(Q34379))
action count
action equal
action union
action find_reverse_tuple_counts
relation P870
type Q34379
type Q188451
action find_reverse_tuple_counts
relation P870
type Q34379
type Q9748
value 149
[ANSWER]
[[{'concept': 'Q188451'}, {'concept': 'Q9748'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?n ) ?v WHERE { { ?u property:P870 ?v . ?v rdf:type ontology:Q34379 . ?u rdf:type ontology:Q9748 } UNION { ?u property:P870 ?v . ?v rdf:type ontology:Q34379 . ?u rdf:type ontology:Q188451 } } GROUP BY ?v } . FILTER ( ?n = 149 ) }
piano violin
2
action count
action equal
action union
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type music genre
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type concerto
value 149
[[{'concept': 'music genre'}, {'concept': 'concerto'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?n ) ?v WHERE { { ?u property:instrumentation ?v . ?v rdf:type ontology:musical_instrument . ?u rdf:type ontology:concerto } UNION { ?u property:instrumentation ?v . ?v rdf:type ontology:musical_instrument . ?u rdf:type ontology:music_genre } } GROUP BY ?v } . FILTER ( ?n = 149 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q200193
P140
Q13414953
USER
What is the religious affiliation of Alp Arslan ?
(Q200193,P140,c(Q13414953))
action filter_type
action find
entity Q200193
relation P140
type Q13414953
['Q200193', 'P140', {'concept': 'Q13414953'}]
SELECT DISTINCT ?u WHERE { resource:Q200193 property:P140 ?u . ?u rdf:type ontology:Q13414953 }
Alp Arslan
action filter_type
action find
entity Alp Arslan
relation religion
type religious denomination
['Alp Arslan', 'religion', {'concept': 'religious denomination'}]
SELECT DISTINCT ?u WHERE { resource:Alp_Arslan property:religion ?u . ?u rdf:type ontology:religious_denomination }
[]
religious denomination
Q483654
SYSTEM
Sunni Islam
Q483654
(Q200193,P140,c(Q13414953))
action filter_type
action find
entity Q200193
relation P140
type Q13414953
The religious affiliation of Alp Arslan is [ANSWER]
['Q200193', 'P140', {'concept': 'Q13414953'}]
SELECT DISTINCT ?u WHERE { resource:Q200193 property:P140 ?u . ?u rdf:type ontology:Q13414953 }
Sunni Islam
The religious affiliation of Alp Arslan is Sunni Islam
Sunni Islam
action filter_type
action find
entity Alp Arslan
relation religion
type religious denomination
['Alp Arslan', 'religion', {'concept': 'religious denomination'}]
SELECT DISTINCT ?u WHERE { resource:Alp_Arslan property:religion ?u . ?u rdf:type ontology:religious_denomination }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q632643
Q13414953
USER
And how about Meriam Al Khalifa?
(Q632643,P140,c(Q13414953))
action filter_type
action find
entity Q632643
relation P140
type Q13414953
['Q632643', 'P140', {'concept': 'Q13414953'}]
SELECT DISTINCT ?p WHERE { resource:Q632643 property:P140 ?p . ?p rdf:type ontology:Q13414953 }
Meriam Al Khalifa
action filter_type
action find
entity Meriam Al Khalifa
relation religion
type religious denomination
['Meriam Al Khalifa', 'religion', {'concept': 'religious denomination'}]
SELECT DISTINCT ?p WHERE { resource:Meriam_Al_Khalifa property:religion ?p . ?p rdf:type ontology:religious_denomination }
[]
religious denomination
Q483654
SYSTEM
Sunni Islam
Q483654
(Q632643,P140,c(Q13414953))
action filter_type
action find
entity Q632643
relation P140
type Q13414953
[ANSWER]
['Q632643', 'P140', {'concept': 'Q13414953'}]
SELECT DISTINCT ?p WHERE { resource:Q632643 property:P140 ?p . ?p rdf:type ontology:Q13414953 }
Sunni Islam
Sunni Islam
action filter_type
action find
entity Meriam Al Khalifa
relation religion
type religious denomination
['Meriam Al Khalifa', 'religion', {'concept': 'religious denomination'}]
SELECT DISTINCT ?p WHERE { resource:Meriam_Al_Khalifa property:religion ?p . ?p rdf:type ontology:religious_denomination }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q483654 Q2799257
P140
Q502895
USER
Does Salma Amani belong to that religious denomination religion ?
(Q2799257,P140,Q483654)
action is_in
entity Q2799257
action find
entity Q483654
relation P140
['Q2799257', 'P140', 'Q483654']
ASK WHERE { resource:Q483654 property:P140 resource:Q2799257 }
Sunni Islam Salma Amani
action is_in
entity Salma Amani
action find
entity Sunni Islam
relation religion
['Salma Amani', 'religion', 'Sunni Islam']
ASK WHERE { resource:Sunni_Islam property:religion resource:Salma_Amani }
[]
common name
SYSTEM
NO
(Q2799257,P140,Q483654)
action is_in
entity Q2799257
action find
entity Q483654
relation P140
[ANSWER]
['Q2799257', 'P140', 'Q483654']
ASK WHERE { resource:Q483654 property:P140 resource:Q2799257 }
No
action is_in
entity Salma Amani
action find
entity Sunni Islam
relation religion
['Salma Amani', 'religion', 'Sunni Islam']
ASK WHERE { resource:Sunni_Islam property:religion resource:Salma_Amani }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q200193
P22
Q502895
USER
How many people have Alp Arslan as father ?
(c(Q502895),P22,Q200193)
action count
action filter_type
action find_reverse
entity Q200193
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q200193']
SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { ?x property:P22 resource:Q200193 . ?x rdf:type ontology:Q502895 }
Alp Arslan
action count
action filter_type
action find_reverse
entity Alp Arslan
relation father
type common name
[{'concept': 'common name'}, 'father', 'Alp Arslan']
SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { ?x property:father resource:Alp_Arslan . ?x rdf:type ontology:common_name }
[]
common name
SYSTEM
1
Q311482
(c(Q502895),P22,Q200193)
action count
action filter_type
action find_reverse
entity Q200193
relation P22
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P22', 'Q200193']
SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { ?x property:P22 resource:Q200193 . ?x rdf:type ontology:Q502895 }
Malik-Shah I
1
action count
action filter_type
action find_reverse
entity Alp Arslan
relation father
type common name
[{'concept': 'common name'}, 'father', 'Alp Arslan']
SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { ?x property:father resource:Alp_Arslan . ?x rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q200193
P97
Q3320743
USER
Which title of honor was held by that person ?
action filter_type
action find
entity Q200193
relation P97
type Q3320743
SELECT DISTINCT ?f WHERE { resource:Q200193 property:P97 ?f . ?f rdf:type ontology:Q3320743 }
Alp Arslan
action filter_type
action find
entity Alp Arslan
relation noble title
type title of honor
SELECT DISTINCT ?f WHERE { resource:Alp_Arslan property:noble_title ?f . ?f rdf:type ontology:title_of_honor }
[]
title of honor
Q43292
SYSTEM
sultan
Q43292
action filter_type
action find
entity Q200193
relation P97
type Q3320743
The [ANSWER] was held by that person
SELECT DISTINCT ?f WHERE { resource:Q200193 property:P97 ?f . ?f rdf:type ontology:Q3320743 }
sultan
The sultan was held by that person
sultan
action filter_type
action find
entity Alp Arslan
relation noble title
type title of honor
SELECT DISTINCT ?f WHERE { resource:Alp_Arslan property:noble_title ?f . ?f rdf:type ontology:title_of_honor }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q311482
P20
Q515
USER
Where did Malik-Shah I die ?
(Q311482,P20,c(Q515))
action filter_type
action find
entity Q311482
relation P20
type Q515
['Q311482', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q515 . resource:Q311482 property:P20 ?y }
Malik-Shah I
action filter_type
action find
entity Malik-Shah I
relation place of death
type city
['Malik-Shah I', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:city . resource:Malik-Shah_I property:place_of_death ?y }
[]
city
Q1530
SYSTEM
Baghdad
Q1530
(Q311482,P20,c(Q515))
action filter_type
action find
entity Q311482
relation P20
type Q515
Malik-Shah I died in [ANSWER]
['Q311482', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q515 . resource:Q311482 property:P20 ?y }
Baghdad
Malik-Shah I died in Baghdad
Baghdad
action filter_type
action find
entity Malik-Shah I
relation place of death
type city
['Malik-Shah I', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:city . resource:Malik-Shah_I property:place_of_death ?y }
[]