Simple Question (Direct)
Simple Question
Q986070
P47
Q515
USER
Which city shares border with Chrudim ?
(Q986070,P47,c(Q515))
action filter_type
action find
entity Q986070
relation P47
type Q515
['Q986070', 'P47', {'concept': 'Q515'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q515 . resource:Q986070 property:P47 ?e }
Chrudim
action filter_type
action find
entity Chrudim
relation shares border with
type city
['Chrudim', 'shares border with', {'concept': 'city'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:city . resource:Chrudim property:shares_border_with ?e }
[]
city
Q1757182
SYSTEM
Slatiňany
Q1757182
(Q986070,P47,c(Q515))
action filter_type
action find
entity Q986070
relation P47
type Q515
[ANSWER] shares border with Chrudim
['Q986070', 'P47', {'concept': 'Q515'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q515 . resource:Q986070 property:P47 ?e }
Slatiňany
Slatiňany shares border with Chrudim
Slatiňany
action filter_type
action find
entity Chrudim
relation shares border with
type city
['Chrudim', 'shares border with', {'concept': 'city'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:city . resource:Chrudim property:shares_border_with ?e }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1757182
P20
Q502895
USER
Which people have that city as place of death ?
(c(Q502895),P20,Q1757182)
action filter_type
action find_reverse
entity Q1757182
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q1757182']
SELECT DISTINCT ?q WHERE { ?q property:P20 resource:Q1757182 . ?q rdf:type ontology:Q502895 }
Slatiňany
action filter_type
action find_reverse
entity Slatiňany
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Slatiňany']
SELECT DISTINCT ?q WHERE { ?q property:place_of_death resource:Slatiňany . ?q rdf:type ontology:common_name }
[]
common name
Q12017133 Q12017474
SYSTEM
František Josef z Auerspergu, František Schmoranz starší
Q12017133 Q12017474
(c(Q502895),P20,Q1757182)
action filter_type
action find_reverse
entity Q1757182
relation P20
type Q502895
[ANSWERS] have that city as place of death
[{'concept': 'Q502895'}, 'P20', 'Q1757182']
SELECT DISTINCT ?q WHERE { ?q property:P20 resource:Q1757182 . ?q rdf:type ontology:Q502895 }
František Josef z Auerspergu František Schmoranz starší
František Josef z Auerspergu and František Schmoranz starší have that city as place of death
František Josef z Auerspergu František Schmoranz starší
action filter_type
action find_reverse
entity Slatiňany
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Slatiňany']
SELECT DISTINCT ?q WHERE { ?q property:place_of_death resource:Slatiňany . ?q rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q12017474
P40
Q502895
USER
Who is a child of František Schmoranz starší ?
(Q12017474,P40,c(Q502895))
action filter_type
action find
entity Q12017474
relation P40
type Q502895
['Q12017474', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q12017474 property:P40 ?r . ?r rdf:type ontology:Q502895 }
František Schmoranz starší
action filter_type
action find
entity František Schmoranz starší
relation child
type common name
['František Schmoranz starší', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:František_Schmoranz_starší property:child ?r . ?r rdf:type ontology:common_name }
[]
common name
Q12017472
SYSTEM
František Schmoranz mladší
Q12017472
(Q12017474,P40,c(Q502895))
action filter_type
action find
entity Q12017474
relation P40
type Q502895
A child of František Schmoranz starší is named [ANSWER]
['Q12017474', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q12017474 property:P40 ?r . ?r rdf:type ontology:Q502895 }
František Schmoranz mladší
A child of František Schmoranz starší is named František Schmoranz mladší
František Schmoranz mladší
action filter_type
action find
entity František Schmoranz starší
relation child
type common name
['František Schmoranz starší', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:František_Schmoranz_starší property:child ?r . ?r rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q558299
Q502895
USER
And how about Theodoric I, Count of Montbéliard?
(Q558299,P40,c(Q502895))
action filter_type
action find
entity Q558299
relation P40
type Q502895
['Q558299', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q502895 . resource:Q558299 property:P40 ?u }
Theodoric I, Count of Montbéliard
action filter_type
action find
entity Theodoric I, Count of Montbéliard
relation child
type common name
['Theodoric I, Count of Montbéliard', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:common_name . resource:Theodoric_I,_Count_of_Montbéliard property:child ?u }
[]
common name
Q583909 Q673289 Q3089904
SYSTEM
Étienne de Bar, Reginald I, Count of Bar, Friedrich I of Ferrette
Q583909 Q3089904 Q673289 Q2081754 Q2827032
(Q558299,P40,c(Q502895))
action filter_type
action find
entity Q558299
relation P40
type Q502895
[ANSWERS]
['Q558299', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q502895 . resource:Q558299 property:P40 ?u }
Étienne de Bar Friedrich I of Ferrette Reginald I, Count of Bar Theodoric II, Count of Montbéliard Agnès of Bar
Étienne de Bar Reginald I, Count of Bar Friedrich I of Ferrette
action filter_type
action find
entity Theodoric I, Count of Montbéliard
relation child
type common name
['Theodoric I, Count of Montbéliard', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:common_name . resource:Theodoric_I,_Count_of_Montbéliard property:child ?u }
[]
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 approximately 3350 people ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3350
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) WHERE { FILTER ( ?u = 3350 ) . { SELECT DISTINCT ?j ( COUNT ( ?g ) AS ?u ) WHERE { ?g property:P1303 ?j . ?j rdf:type ontology:Q34379 . ?g rdf:type ontology:Q502895 } GROUP BY ?j } }
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3350
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) WHERE { FILTER ( ?u = 3350 ) . { SELECT DISTINCT ?j ( COUNT ( ?g ) AS ?u ) WHERE { ?g property:instrument ?j . ?j rdf:type ontology:musical_instrument . ?g rdf:type ontology:common_name } GROUP BY ?j } }
[]
musical instrument common name
SYSTEM
3
Q8355 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3350
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) WHERE { FILTER ( ?u = 3350 ) . { SELECT DISTINCT ?j ( COUNT ( ?g ) AS ?u ) WHERE { ?g property:P1303 ?j . ?j rdf:type ontology:Q34379 . ?g rdf:type ontology:Q502895 } GROUP BY ?j } }
violin organ drum kit
3
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3350
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) WHERE { FILTER ( ?u = 3350 ) . { SELECT DISTINCT ?j ( COUNT ( ?g ) AS ?u ) WHERE { ?g property:instrument ?j . ?j rdf:type ontology:musical_instrument . ?g rdf:type ontology:common_name } GROUP BY ?j } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q18156023
P725
Q502895 Q6619679
USER
How many fictional humanoids did more number of people do the dubbing for than Maud Pie ?
(c(Q6619679),P725,c(Q502895))
action count
action greater
action find_tuple_counts
relation P725
type Q6619679
type Q502895
action count
action filter_type
action find
entity Q18156023
relation P725
type Q6619679
[{'concept': 'Q6619679'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?j ) AS ?w ) WHERE { ?u property:P725 ?j . ?u rdf:type ontology:Q6619679 . ?j rdf:type ontology:Q502895 } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?c ) WHERE { resource:Q18156023 property:P725 ?v . ?v rdf:type ontology:Q6619679 } } . FILTER ( ?w > ?c ) }
Maud Pie
action count
action greater
action find_tuple_counts
relation voice actor
type fictional humanoid
type common name
action count
action filter_type
action find
entity Maud Pie
relation voice actor
type fictional humanoid
[{'concept': 'fictional humanoid'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?j ) AS ?w ) WHERE { ?u property:voice_actor ?j . ?u rdf:type ontology:fictional_humanoid . ?j rdf:type ontology:common_name } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?c ) WHERE { resource:Maud_Pie property:voice_actor ?v . ?v rdf:type ontology:fictional_humanoid } } . FILTER ( ?w > ?c ) }
[]
common name fictional humanoid
SYSTEM
11
Q15707554 Q11609133 Q15726751 Q11479883 Q994344 Q11677249 Q11382982 Q18073923 Q11514862 Q931 Q15711517
(c(Q6619679),P725,c(Q502895))
action count
action greater
action find_tuple_counts
relation P725
type Q6619679
type Q502895
action count
action filter_type
action find
entity Q18156023
relation P725
type Q6619679
[ANSWER]
[{'concept': 'Q6619679'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?j ) AS ?w ) WHERE { ?u property:P725 ?j . ?u rdf:type ontology:Q6619679 . ?j rdf:type ontology:Q502895 } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?c ) WHERE { resource:Q18156023 property:P725 ?v . ?v rdf:type ontology:Q6619679 } } . FILTER ( ?w > ?c ) }
Apple Bloom Sayaka Miki Diamond Tiara Mami Tomoe Ezio Auditore da Firenze Madoka Kaname Kyoko Sakura Sunset Shimmer Homura Akemi Naruto Uzumaki Granny Smith
11
action count
action greater
action find_tuple_counts
relation voice actor
type fictional humanoid
type common name
action count
action filter_type
action find
entity Maud Pie
relation voice actor
type fictional humanoid
[{'concept': 'fictional humanoid'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?j ) AS ?w ) WHERE { ?u property:voice_actor ?j . ?u rdf:type ontology:fictional_humanoid . ?j rdf:type ontology:common_name } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?c ) WHERE { resource:Maud_Pie property:voice_actor ?v . ?v rdf:type ontology:fictional_humanoid } } . FILTER ( ?w > ?c ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2735888 Q558299
P22
Q502895
USER
Which people were the father of Theodoric I, Count of Montbéliard or Abd-al-Màlik ibn Àhmad Imad-ad-Dawla ?
OR((Q558299,P22,c(Q502895)), (Q2735888,P22,c(Q502895)))
action filter_type
action union
action find
entity Q558299
relation P22
action find
entity Q2735888
relation P22
type Q502895
{'OR': [['Q558299', 'P22', {'concept': 'Q502895'}], ['Q2735888', 'P22', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?p ) { ( resource:Q558299 ) ( resource:Q2735888 ) } . ?p property:P22 ?z } . ?z rdf:type ontology:Q502895 }
Abd-al-Màlik ibn Àhmad Imad-ad-Dawla Theodoric I, Count of Montbéliard
action filter_type
action union
action find
entity Theodoric I, Count of Montbéliard
relation father
action find
entity Abd-al-Màlik ibn Àhmad Imad-ad-Dawla
relation father
type common name
{'OR': [['Theodoric I, Count of Montbéliard', 'father', {'concept': 'common name'}], ['Abd-al-Màlik ibn Àhmad Imad-ad-Dawla', 'father', {'concept': 'common name'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?p ) { ( resource:Theodoric_I,_Count_of_Montbéliard ) ( resource:Abd-al-Màlik_ibn_Àhmad_Imad-ad-Dawla ) } . ?p property:father ?z } . ?z rdf:type ontology:common_name }
[]
common name
Q2398089 Q473498
SYSTEM
Al-Mustain II, Louis de Scarpone, Count of Montbéliard
Q2398089 Q473498
OR((Q558299,P22,c(Q502895)), (Q2735888,P22,c(Q502895)))
action filter_type
action union
action find
entity Q558299
relation P22
action find
entity Q2735888
relation P22
type Q502895
[ANSWERS]
{'OR': [['Q558299', 'P22', {'concept': 'Q502895'}], ['Q2735888', 'P22', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?p ) { ( resource:Q558299 ) ( resource:Q2735888 ) } . ?p property:P22 ?z } . ?z rdf:type ontology:Q502895 }
Al-Mustain II Louis de Scarpone, Count of Montbéliard
Al-Mustain II and Louis de Scarpone, Count of Montbéliard were the father of Theodoric I, Count of Montbéliard or Abd-al-Màlik ibn Àhmad Imad-ad-Dawla
Al-Mustain II Louis de Scarpone, Count of Montbéliard
action filter_type
action union
action find
entity Theodoric I, Count of Montbéliard
relation father
action find
entity Abd-al-Màlik ibn Àhmad Imad-ad-Dawla
relation father
type common name
{'OR': [['Theodoric I, Count of Montbéliard', 'father', {'concept': 'common name'}], ['Abd-al-Màlik ibn Àhmad Imad-ad-Dawla', 'father', {'concept': 'common name'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?p ) { ( resource:Theodoric_I,_Count_of_Montbéliard ) ( resource:Abd-al-Màlik_ibn_Àhmad_Imad-ad-Dawla ) } . ?p property:father ?z } . ?z rdf:type ontology:common_name }
[]