Simple Question (Direct)
Simple Question
Q110892
P21
Q290
USER
What is the sex of Theodoric I ?
(Q110892,P21,c(Q290))
action filter_type
action find
entity Q110892
relation P21
type Q290
['Q110892', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q110892 property:P21 ?z . ?z rdf:type ontology:Q290 }
Theodoric I
action filter_type
action find
entity Theodoric I
relation gender
type sex
['Theodoric I', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Theodoric_I property:gender ?z . ?z rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q110892,P21,c(Q290))
action filter_type
action find
entity Q110892
relation P21
type Q290
[ANSWER]
['Q110892', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q110892 property:P21 ?z . ?z rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity Theodoric I
relation gender
type sex
['Theodoric I', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Theodoric_I property:gender ?z . ?z rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q110892
P20
Q1190554
USER
Where did Theodoric I die ?
(Q110892,P20,c(Q1190554))
action filter_type
action find
entity Q110892
relation P20
type Q1190554
['Q110892', 'P20', {'concept': 'Q1190554'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q1190554 . resource:Q110892 property:P20 ?k }
Theodoric I
action filter_type
action find
entity Theodoric I
relation place of death
type event
['Theodoric I', 'place of death', {'concept': 'event'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:event . resource:Theodoric_I property:place_of_death ?k }
[]
event
Q139808
SYSTEM
Battle of the Catalaunian Plains
Q139808
(Q110892,P20,c(Q1190554))
action filter_type
action find
entity Q110892
relation P20
type Q1190554
[ANSWER]
['Q110892', 'P20', {'concept': 'Q1190554'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q1190554 . resource:Q110892 property:P20 ?k }
Battle of the Catalaunian Plains
Battle of the Catalaunian Plains
action filter_type
action find
entity Theodoric I
relation place of death
type event
['Theodoric I', 'place of death', {'concept': 'event'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:event . resource:Theodoric_I property:place_of_death ?k }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7395510
Q1190554
USER
And how about Sa`ad ibn ar-Rabi`?
(Q7395510,P20,c(Q1190554))
action filter_type
action find
entity Q7395510
relation P20
type Q1190554
['Q7395510', 'P20', {'concept': 'Q1190554'}]
SELECT DISTINCT ?x WHERE { resource:Q7395510 property:P20 ?x . ?x rdf:type ontology:Q1190554 }
Sa`ad ibn ar-Rabi`
action filter_type
action find
entity Sa`ad ibn ar-Rabi`
relation place of death
type event
['Sa`ad ibn ar-Rabi`', 'place of death', {'concept': 'event'}]
SELECT DISTINCT ?x WHERE { resource:Sa`ad_ibn_ar-Rabi` property:place_of_death ?x . ?x rdf:type ontology:event }
[]
event
Q488278
SYSTEM
Battle of Uhud
Q488278
(Q7395510,P20,c(Q1190554))
action filter_type
action find
entity Q7395510
relation P20
type Q1190554
[ANSWER]
['Q7395510', 'P20', {'concept': 'Q1190554'}]
SELECT DISTINCT ?x WHERE { resource:Q7395510 property:P20 ?x . ?x rdf:type ontology:Q1190554 }
Battle of Uhud
Battle of Uhud
action filter_type
action find
entity Sa`ad ibn ar-Rabi`
relation place of death
type event
['Sa`ad ibn ar-Rabi`', 'place of death', {'concept': 'event'}]
SELECT DISTINCT ?x WHERE { resource:Sa`ad_ibn_ar-Rabi` property:place_of_death ?x . ?x rdf:type ontology:event }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q8068
P828
Q3839081 Q1190554
USER
Which disasters are the underlying cause of less number of events than flood ?
(c(Q1190554),P828,c(Q3839081))
action less
action find_reverse_tuple_counts
relation P828
type Q3839081
type Q1190554
action count
action filter_type
action find_reverse
entity Q8068
relation P828
type Q1190554
[{'concept': 'Q1190554'}, 'P828', {'concept': 'Q3839081'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?k ) AS ?t ) WHERE { ?k property:P828 ?u . ?u rdf:type ontology:Q3839081 . ?k rdf:type ontology:Q1190554 } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) WHERE { ?i property:P828 resource:Q8068 . ?i rdf:type ontology:Q1190554 } } . FILTER ( ?t < ?o ) }
flood
action less
action find_reverse_tuple_counts
relation has cause
type disaster
type event
action count
action filter_type
action find_reverse
entity flood
relation has cause
type event
[{'concept': 'event'}, 'has cause', {'concept': 'disaster'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?k ) AS ?t ) WHERE { ?k property:has_cause ?u . ?u rdf:type ontology:disaster . ?k rdf:type ontology:event } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) WHERE { ?i property:has_cause resource:flood . ?i rdf:type ontology:event } } . FILTER ( ?t < ?o ) }
[]
disaster event
Q7692360 Q5377742 Q327541
SYSTEM
volcanic eruption, engine failure on take-off, arson
Q5377742 Q7692360 Q327541 Q629257
(c(Q1190554),P828,c(Q3839081))
action less
action find_reverse_tuple_counts
relation P828
type Q3839081
type Q1190554
action count
action filter_type
action find_reverse
entity Q8068
relation P828
type Q1190554
[ANSWERS]
[{'concept': 'Q1190554'}, 'P828', {'concept': 'Q3839081'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?k ) AS ?t ) WHERE { ?k property:P828 ?u . ?u rdf:type ontology:Q3839081 . ?k rdf:type ontology:Q1190554 } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) WHERE { ?i property:P828 resource:Q8068 . ?i rdf:type ontology:Q1190554 } } . FILTER ( ?t < ?o ) }
engine failure on take-off volcanic eruption arson work accident
volcanic eruption engine failure on take-off arson
action less
action find_reverse_tuple_counts
relation has cause
type disaster
type event
action count
action filter_type
action find_reverse
entity flood
relation has cause
type event
[{'concept': 'event'}, 'has cause', {'concept': 'disaster'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?k ) AS ?t ) WHERE { ?k property:has_cause ?u . ?u rdf:type ontology:disaster . ?k rdf:type ontology:event } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) WHERE { ?i property:has_cause resource:flood . ?i rdf:type ontology:event } } . FILTER ( ?t < ?o ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q110892
P40
Q502895
USER
Who has Theodoric I as a child ?
(c(Q502895),P40,Q110892)
action filter_type
action find_reverse
entity Q110892
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q110892']
SELECT DISTINCT ?k WHERE { ?k property:P40 resource:Q110892 . ?k rdf:type ontology:Q502895 }
Theodoric I
action filter_type
action find_reverse
entity Theodoric I
relation child
type common name
[{'concept': 'common name'}, 'child', 'Theodoric I']
SELECT DISTINCT ?k WHERE { ?k property:child resource:Theodoric_I . ?k rdf:type ontology:common_name }
[]
common name
Q102371
SYSTEM
Alaric I
Q102371
(c(Q502895),P40,Q110892)
action filter_type
action find_reverse
entity Q110892
relation P40
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P40', 'Q110892']
SELECT DISTINCT ?k WHERE { ?k property:P40 resource:Q110892 . ?k rdf:type ontology:Q502895 }
Alaric I
Alaric I
action filter_type
action find_reverse
entity Theodoric I
relation child
type common name
[{'concept': 'common name'}, 'child', 'Theodoric I']
SELECT DISTINCT ?k WHERE { ?k property:child resource:Theodoric_I . ?k rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q110892
P7
Q502895
USER
Which person had Theodoric I as brother ?
(c(Q502895),P7,Q110892)
action filter_type
action find_reverse
entity Q110892
relation P7
type Q502895
[{'concept': 'Q502895'}, 'P7', 'Q110892']
SELECT DISTINCT ?i WHERE { ?i property:P7 resource:Q110892 . ?i rdf:type ontology:Q502895 }
Theodoric I
action filter_type
action find_reverse
entity Theodoric I
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Theodoric I']
SELECT DISTINCT ?i WHERE { ?i property:brother resource:Theodoric_I . ?i rdf:type ontology:common_name }
[]
common name
Q17285149
SYSTEM
Pélagie
Q17285149
(c(Q502895),P7,Q110892)
action filter_type
action find_reverse
entity Q110892
relation P7
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P7', 'Q110892']
SELECT DISTINCT ?i WHERE { ?i property:P7 resource:Q110892 . ?i rdf:type ontology:Q502895 }
Pélagie
Pélagie
action filter_type
action find_reverse
entity Theodoric I
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Theodoric I']
SELECT DISTINCT ?i WHERE { ?i property:brother resource:Theodoric_I . ?i rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q110892
P735
Q82799
USER
What is forename of Theodoric I ?
(Q110892,P735,c(Q82799))
action filter_type
action find
entity Q110892
relation P735
type Q82799
['Q110892', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?u WHERE { resource:Q110892 property:P735 ?u . ?u rdf:type ontology:Q82799 }
Theodoric I
action filter_type
action find
entity Theodoric I
relation given name
type name
['Theodoric I', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?u WHERE { resource:Theodoric_I property:given_name ?u . ?u rdf:type ontology:name }
[]
name
Q15884079
SYSTEM
Teodorico
Q15884079
(Q110892,P735,c(Q82799))
action filter_type
action find
entity Q110892
relation P735
type Q82799
[ANSWER]
['Q110892', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?u WHERE { resource:Q110892 property:P735 ?u . ?u rdf:type ontology:Q82799 }
Teodorico
Teodorico
action filter_type
action find
entity Theodoric I
relation given name
type name
['Theodoric I', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?u WHERE { resource:Theodoric_I property:given_name ?u . ?u rdf:type ontology:name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1135804
Q82799
USER
And what about Cory Spinks?
(Q1135804,P735,c(Q82799))
action filter_type
action find
entity Q1135804
relation P735
type Q82799
['Q1135804', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q82799 . resource:Q1135804 property:P735 ?k }
Cory Spinks
action filter_type
action find
entity Cory Spinks
relation given name
type name
['Cory Spinks', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:name . resource:Cory_Spinks property:given_name ?k }
[]
name
Q5173529
SYSTEM
Cory
Q5173529
(Q1135804,P735,c(Q82799))
action filter_type
action find
entity Q1135804
relation P735
type Q82799
[ANSWER]
['Q1135804', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q82799 . resource:Q1135804 property:P735 ?k }
Cory
Cory
action filter_type
action find
entity Cory Spinks
relation given name
type name
['Cory Spinks', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:name . resource:Cory_Spinks property:given_name ?k }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q102371
P40
Q502895
USER
How many people are an offsprings of Alaric I ?
(Q102371,P40,c(Q502895))
action count
action filter_type
action find
entity Q102371
relation P40
type Q502895
['Q102371', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { resource:Q102371 property:P40 ?l . ?l rdf:type ontology:Q502895 }
Alaric I
action count
action filter_type
action find
entity Alaric I
relation child
type common name
['Alaric I', 'child', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { resource:Alaric_I property:child ?l . ?l rdf:type ontology:common_name }
[]
common name
SYSTEM
2
Q110892 Q17285149
(Q102371,P40,c(Q502895))
action count
action filter_type
action find
entity Q102371
relation P40
type Q502895
[ANSWER]
['Q102371', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { resource:Q102371 property:P40 ?l . ?l rdf:type ontology:Q502895 }
Theodoric I Pélagie
2
action count
action filter_type
action find
entity Alaric I
relation child
type common name
['Alaric I', 'child', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { resource:Alaric_I property:child ?l . ?l rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q4767258
Q502895
USER
And also tell me about Anna M. Harkness?
(Q4767258,P40,c(Q502895))
action count
action filter_type
action find
entity Q4767258
relation P40
type Q502895
['Q4767258', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?j ) WHERE { resource:Q4767258 property:P40 ?u . ?u rdf:type ontology:Q502895 }
Anna M. Harkness
action count
action filter_type
action find
entity Anna M. Harkness
relation child
type common name
['Anna M. Harkness', 'child', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?j ) WHERE { resource:Anna_M._Harkness property:child ?u . ?u rdf:type ontology:common_name }
[]
common name
SYSTEM
2
(Q4767258,P40,c(Q502895))
action count
action filter_type
action find
entity Q4767258
relation P40
type Q502895
[ANSWER]
['Q4767258', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?j ) WHERE { resource:Q4767258 property:P40 ?u . ?u rdf:type ontology:Q502895 }
2
action count
action filter_type
action find
entity Anna M. Harkness
relation child
type common name
['Anna M. Harkness', 'child', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?j ) WHERE { resource:Anna_M._Harkness property:child ?u . ?u rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q4767258 Q16199599
P21
Q290
USER
How many sexes do Anna M. Harkness or Taher Shah possess ?
(Q4767258,P21,c(Q290)) (Q16199599,P21,c(Q290))
action count
action union
action filter_type
action find
entity Q4767258
relation P21
type Q290
action filter_type
action find
entity Q16199599
relation P21
type Q290
['Q4767258', 'P21', {'concept': 'Q290'}] ['Q16199599', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?y ) WHERE { ?j property:P21 ?d . VALUES ( ?j ) { ( resource:Q4767258 ) ( resource:Q16199599 ) } }
Anna M. Harkness Taher Shah
action count
action union
action filter_type
action find
entity Anna M. Harkness
relation gender
type sex
action filter_type
action find
entity Taher Shah
relation gender
type sex
['Anna M. Harkness', 'gender', {'concept': 'sex'}] ['Taher Shah', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?y ) WHERE { ?j property:gender ?d . VALUES ( ?j ) { ( resource:Anna_M._Harkness ) ( resource:Taher_Shah ) } }
[]
sex
SYSTEM
2
Q6581097 Q6581072
(Q4767258,P21,c(Q290)) (Q16199599,P21,c(Q290))
action count
action union
action filter_type
action find
entity Q4767258
relation P21
type Q290
action filter_type
action find
entity Q16199599
relation P21
type Q290
[ANSWER]
['Q4767258', 'P21', {'concept': 'Q290'}] ['Q16199599', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?y ) WHERE { ?j property:P21 ?d . VALUES ( ?j ) { ( resource:Q4767258 ) ( resource:Q16199599 ) } }
male female
2
action count
action union
action filter_type
action find
entity Anna M. Harkness
relation gender
type sex
action filter_type
action find
entity Taher Shah
relation gender
type sex
['Anna M. Harkness', 'gender', {'concept': 'sex'}] ['Taher Shah', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?y ) WHERE { ?j property:gender ?d . VALUES ( ?j ) { ( resource:Anna_M._Harkness ) ( resource:Taher_Shah ) } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q24276321 Q8068
P828
Q483247
USER
Which phenomena causes flood or 2013 Flooding in Niederweiler ?
OR((Q8068,P828,c(Q483247)), (Q24276321,P828,c(Q483247)))
action filter_type
action union
action find
entity Q8068
relation P828
action find
entity Q24276321
relation P828
type Q483247
{'OR': [['Q8068', 'P828', {'concept': 'Q483247'}], ['Q24276321', 'P828', {'concept': 'Q483247'}]]}
SELECT DISTINCT ?j WHERE { { VALUES ( ?l ) { ( resource:Q8068 ) ( resource:Q24276321 ) } . ?l property:P828 ?j } . ?j rdf:type ontology:Q483247 }
2013 Flooding in Niederweiler flood
action filter_type
action union
action find
entity flood
relation has cause
action find
entity 2013 Flooding in Niederweiler
relation has cause
type phenomenon
{'OR': [['flood', 'has cause', {'concept': 'phenomenon'}], ['2013 Flooding in Niederweiler', 'has cause', {'concept': 'phenomenon'}]]}
SELECT DISTINCT ?j WHERE { { VALUES ( ?l ) { ( resource:flood ) ( resource:2013_Flooding_in_Niederweiler ) } . ?l property:has_cause ?j } . ?j rdf:type ontology:phenomenon }
[]
phenomenon
Q8070 Q7925
SYSTEM
tsunami, rain
Q8070 Q7925
OR((Q8068,P828,c(Q483247)), (Q24276321,P828,c(Q483247)))
action filter_type
action union
action find
entity Q8068
relation P828
action find
entity Q24276321
relation P828
type Q483247
[ANSWERS]
{'OR': [['Q8068', 'P828', {'concept': 'Q483247'}], ['Q24276321', 'P828', {'concept': 'Q483247'}]]}
SELECT DISTINCT ?j WHERE { { VALUES ( ?l ) { ( resource:Q8068 ) ( resource:Q24276321 ) } . ?l property:P828 ?j } . ?j rdf:type ontology:Q483247 }
tsunami rain
tsunami rain
action filter_type
action union
action find
entity flood
relation has cause
action find
entity 2013 Flooding in Niederweiler
relation has cause
type phenomenon
{'OR': [['flood', 'has cause', {'concept': 'phenomenon'}], ['2013 Flooding in Niederweiler', 'has cause', {'concept': 'phenomenon'}]]}
SELECT DISTINCT ?j WHERE { { VALUES ( ?l ) { ( resource:flood ) ( resource:2013_Flooding_in_Niederweiler ) } . ?l property:has_cause ?j } . ?j rdf:type ontology:phenomenon }
[]