Simple Question (Direct)
Simple Question
Q6856845
P7
Q502895
USER
Who are Charles Stuart, Duke of Kendal a sibling of ?
(Q6856845,P7,c(Q502895))
action filter_type
action find
entity Q6856845
relation P7
type Q502895
['Q6856845', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q6856845 property:P7 ?j . ?j rdf:type ontology:Q502895 }
Charles Stuart, Duke of Kendal
action filter_type
action find
entity Charles Stuart, Duke of Kendal
relation brother
type common name
['Charles Stuart, Duke of Kendal', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Charles_Stuart,_Duke_of_Kendal property:brother ?j . ?j rdf:type ontology:common_name }
[]
common name
Q166023 Q211681 Q5082734
SYSTEM
James FitzJames, 1st Duke of Berwick, James Francis Edward Stuart, Charles Stuart, Duke of Cambridge
Q5082733 Q211681 Q5082734 Q5337475 Q166023 Q1894021 Q2269986
(Q6856845,P7,c(Q502895))
action filter_type
action find
entity Q6856845
relation P7
type Q502895
[ANSWERS]
['Q6856845', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q6856845 property:P7 ?j . ?j rdf:type ontology:Q502895 }
Charles Stuart, Duke of Cambridge James Francis Edward Stuart Charles Stuart, Duke of Cambridge Edgar Stuart, Duke of Cambridge James FitzJames, 1st Duke of Berwick Henry FitzJames James Stuart, Duke of Cambridge
Charles Stuart , Duke of Kendal a sibling of are also James FitzJames, 1st Duke of Berwick, James Francis Edward Stuart and Charles Stuart, Duke of Cambridge
James FitzJames, 1st Duke of Berwick James Francis Edward Stuart Charles Stuart, Duke of Cambridge
action filter_type
action find
entity Charles Stuart, Duke of Kendal
relation brother
type common name
['Charles Stuart, Duke of Kendal', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Charles_Stuart,_Duke_of_Kendal property:brother ?j . ?j rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q166023 Q211681 Q5082734
P40
Q502895
USER
Which people have those ones as an offspring ?
(c(Q502895),P40,Q166023) (c(Q502895),P40,Q211681) (c(Q502895),P40,Q5082734)
action filter_type
action find_reverse
entity prev_answer
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q166023'] [{'concept': 'Q502895'}, 'P40', 'Q211681'] [{'concept': 'Q502895'}, 'P40', 'Q5082734']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q502895 . VALUES ( ?j ) { ( resource:Q5082733 ) ( resource:Q211681 ) ( resource:Q5082734 ) } . ?w property:P40 ?j }
James FitzJames, 1st Duke of Berwick James Francis Edward Stuart Charles Stuart, Duke of Cambridge
action filter_type
action find_reverse
entity prev_answer
relation child
type common name
[{'concept': 'common name'}, 'child', 'James FitzJames, 1st Duke of Berwick'] [{'concept': 'common name'}, 'child', 'James Francis Edward Stuart'] [{'concept': 'common name'}, 'child', 'Charles Stuart, Duke of Cambridge']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:common_name . VALUES ( ?j ) { ( resource:Charles_Stuart,_Duke_of_Cambridge ) ( resource:James_Francis_Edward_Stuart ) ( resource:Charles_Stuart,_Duke_of_Cambridge ) } . ?w property:child ?j }
[]
common name
Q126188 Q126188 Q126188
SYSTEM
James VII and II
Q271182 Q126188 Q232475 Q126188 Q232475 Q126188
(c(Q502895),P40,Q166023) (c(Q502895),P40,Q211681) (c(Q502895),P40,Q5082734)
action filter_type
action find_reverse
entity prev_answer
relation P40
type Q502895
[ANSWER], [ANSWER] and [ANSWER] have those ones as an offspring
[{'concept': 'Q502895'}, 'P40', 'Q166023'] [{'concept': 'Q502895'}, 'P40', 'Q211681'] [{'concept': 'Q502895'}, 'P40', 'Q5082734']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q502895 . VALUES ( ?j ) { ( resource:Q5082733 ) ( resource:Q211681 ) ( resource:Q5082734 ) } . ?w property:P40 ?j }
Arabella Churchill James VII and II Mary of Modena James VII and II Mary of Modena James VII and II
James VII and II, James VII and II and James VII and II have those ones as an offspring
James VII and II James VII and II James VII and II
action filter_type
action find_reverse
entity prev_answer
relation child
type common name
[{'concept': 'common name'}, 'child', 'James FitzJames, 1st Duke of Berwick'] [{'concept': 'common name'}, 'child', 'James Francis Edward Stuart'] [{'concept': 'common name'}, 'child', 'Charles Stuart, Duke of Cambridge']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:common_name . VALUES ( ?j ) { ( resource:Charles_Stuart,_Duke_of_Cambridge ) ( resource:James_Francis_Edward_Stuart ) ( resource:Charles_Stuart,_Duke_of_Cambridge ) } . ?w property:child ?j }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q166023
P112
Q8436
USER
Which family was started by James FitzJames, 1st Duke of Berwick ?
(c(Q8436),P112,Q166023)
action filter_type
action find_reverse
entity Q166023
relation P112
type Q8436
[{'concept': 'Q8436'}, 'P112', 'Q166023']
SELECT DISTINCT ?z WHERE { ?z property:P112 resource:Q166023 . ?z rdf:type ontology:Q8436 }
James FitzJames, 1st Duke of Berwick
action filter_type
action find_reverse
entity James FitzJames, 1st Duke of Berwick
relation founder
type family
[{'concept': 'family'}, 'founder', 'James FitzJames, 1st Duke of Berwick']
SELECT DISTINCT ?z WHERE { ?z property:founder resource:James_FitzJames,_1st_Duke_of_Berwick . ?z rdf:type ontology:family }
[]
family
Q3065779
SYSTEM
House of FitzJames
Q3065779
(c(Q8436),P112,Q166023)
action filter_type
action find_reverse
entity Q166023
relation P112
type Q8436
[ANSWER] was started by James FitzJames, 1st Duke of Berwick
[{'concept': 'Q8436'}, 'P112', 'Q166023']
SELECT DISTINCT ?z WHERE { ?z property:P112 resource:Q166023 . ?z rdf:type ontology:Q8436 }
House of FitzJames
House of FitzJames was started by James FitzJames, 1st Duke of Berwick
House of FitzJames
action filter_type
action find_reverse
entity James FitzJames, 1st Duke of Berwick
relation founder
type family
[{'concept': 'family'}, 'founder', 'James FitzJames, 1st Duke of Berwick']
SELECT DISTINCT ?z WHERE { ?z property:founder resource:James_FitzJames,_1st_Duke_of_Berwick . ?z rdf:type ontology:family }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q166023
P22
Q502895
USER
Who have that one as a father ?
(c(Q502895),P22,Q3065779)
action filter_type
action find_reverse
entity Q166023
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q3065779']
SELECT DISTINCT ?w WHERE { ?w property:P22 resource:Q166023 . ?w rdf:type ontology:Q502895 }
James FitzJames, 1st Duke of Berwick
action filter_type
action find_reverse
entity James FitzJames, 1st Duke of Berwick
relation father
type common name
[{'concept': 'common name'}, 'father', 'House of FitzJames']
SELECT DISTINCT ?w WHERE { ?w property:father resource:James_FitzJames,_1st_Duke_of_Berwick . ?w rdf:type ontology:common_name }
[]
common name
Q952446 Q2960573 Q3086190
SYSTEM
James Fitz-James Stuart, 2nd Duke of Berwick, Charles de Fitz-James, François de Fitz-James
Q18332032 Q952446 Q2960573 Q18331962 Q3086190
(c(Q502895),P22,Q3065779)
action filter_type
action find_reverse
entity Q166023
relation P22
type Q502895
[ANSWERS] have that one as a father
[{'concept': 'Q502895'}, 'P22', 'Q3065779']
SELECT DISTINCT ?w WHERE { ?w property:P22 resource:Q166023 . ?w rdf:type ontology:Q502895 }
Jacques de Fitz-James James Fitz-James Stuart, 2nd Duke of Berwick Charles de Fitz-James Henri de Fitz-James François de Fitz-James
James Fitz-James Stuart, 2nd Duke of Berwick, Charles de Fitz-James and François de Fitz-James have that one as a father
James Fitz-James Stuart, 2nd Duke of Berwick Charles de Fitz-James François de Fitz-James
action filter_type
action find_reverse
entity James FitzJames, 1st Duke of Berwick
relation father
type common name
[{'concept': 'common name'}, 'father', 'House of FitzJames']
SELECT DISTINCT ?w WHERE { ?w property:father resource:James_FitzJames,_1st_Duke_of_Berwick . ?w rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q166023
P40
Q502895
USER
Do James FitzJames, 1st Duke of Berwick have those ones as an offspring ?
(Q166023,P40,Q952446) (Q166023,P40,Q2960573) (Q166023,P40,Q3086190)
action is_in
entity prev_answer
action find
entity Q166023
relation P40
['Q166023', 'P40', 'Q952446'] ['Q166023', 'P40', 'Q2960573'] ['Q166023', 'P40', 'Q3086190']
ASK WHERE { VALUES ( ?k ) { ( resource:Q18332032 ) ( resource:Q952446 ) ( resource:Q2960573 ) } . resource:Q166023 property:P40 ?k }
James FitzJames, 1st Duke of Berwick
action is_in
entity prev_answer
action find
entity James FitzJames, 1st Duke of Berwick
relation child
['James FitzJames, 1st Duke of Berwick', 'child', 'James Fitz-James Stuart, 2nd Duke of Berwick'] ['James FitzJames, 1st Duke of Berwick', 'child', 'Charles de Fitz-James'] ['James FitzJames, 1st Duke of Berwick', 'child', 'François de Fitz-James']
ASK WHERE { VALUES ( ?k ) { ( resource:Jacques_de_Fitz-James ) ( resource:James_Fitz-James_Stuart,_2nd_Duke_of_Berwick ) ( resource:Charles_de_Fitz-James ) } . resource:James_FitzJames,_1st_Duke_of_Berwick property:child ?k }
[]
common name
SYSTEM
YES
(Q166023,P40,Q952446) (Q166023,P40,Q2960573) (Q166023,P40,Q3086190)
action is_in
entity prev_answer
action find
entity Q166023
relation P40
[ANSWER]
['Q166023', 'P40', 'Q952446'] ['Q166023', 'P40', 'Q2960573'] ['Q166023', 'P40', 'Q3086190']
ASK WHERE { VALUES ( ?k ) { ( resource:Q18332032 ) ( resource:Q952446 ) ( resource:Q2960573 ) } . resource:Q166023 property:P40 ?k }
Yes
action is_in
entity prev_answer
action find
entity James FitzJames, 1st Duke of Berwick
relation child
['James FitzJames, 1st Duke of Berwick', 'child', 'James Fitz-James Stuart, 2nd Duke of Berwick'] ['James FitzJames, 1st Duke of Berwick', 'child', 'Charles de Fitz-James'] ['James FitzJames, 1st Duke of Berwick', 'child', 'François de Fitz-James']
ASK WHERE { VALUES ( ?k ) { ( resource:Jacques_de_Fitz-James ) ( resource:James_Fitz-James_Stuart,_2nd_Duke_of_Berwick ) ( resource:Charles_de_Fitz-James ) } . resource:James_FitzJames,_1st_Duke_of_Berwick property:child ?k }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by around 3167 people ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3167
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?d ) AS ?b ) WHERE { ?r rdf:type ontology:Q34379 . ?d rdf:type ontology:Q502895 . ?d property:P1303 ?r } GROUP BY ?r } . FILTER ( ?b = 3167 ) }
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3167
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?d ) AS ?b ) WHERE { ?r rdf:type ontology:musical_instrument . ?d rdf:type ontology:common_name . ?d property:instrument ?r } GROUP BY ?r } . FILTER ( ?b = 3167 ) }
[]
musical instrument common name
Q8355 Q1444 Q128309
SYSTEM
violin, organ, drum kit
Q8355 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3167
[ANSWERS] are played by around 3167 people
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?d ) AS ?b ) WHERE { ?r rdf:type ontology:Q34379 . ?d rdf:type ontology:Q502895 . ?d property:P1303 ?r } GROUP BY ?r } . FILTER ( ?b = 3167 ) }
violin organ drum kit
Violin, organ and drum kit are played by around 3167 people
violin organ drum kit
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3167
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?d ) AS ?b ) WHERE { ?r rdf:type ontology:musical_instrument . ?d rdf:type ontology:common_name . ?d property:instrument ?r } GROUP BY ?r } . FILTER ( ?b = 3167 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q18715691 Q3086190
P20
Q56061
USER
Which administrative territories did François de Fitz-James or Luigi Buccico die ?
OR((Q3086190,P20,c(Q56061)), (Q18715691,P20,c(Q56061)))
action filter_type
action union
action find
entity Q3086190
relation P20
action find
entity Q18715691
relation P20
type Q56061
{'OR': [['Q3086190', 'P20', {'concept': 'Q56061'}], ['Q18715691', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?p ) { ( resource:Q3086190 ) ( resource:Q18715691 ) } . ?p property:P20 ?c } . ?c rdf:type ontology:Q56061 }
Luigi Buccico François de Fitz-James
action filter_type
action union
action find
entity François de Fitz-James
relation place of death
action find
entity Luigi Buccico
relation place of death
type administrative territorial entity
{'OR': [['François de Fitz-James', 'place of death', {'concept': 'administrative territorial entity'}], ['Luigi Buccico', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?p ) { ( resource:François_de_Fitz-James ) ( resource:Luigi_Buccico ) } . ?p property:place_of_death ?c } . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1628773 Q2634
SYSTEM
Paris, Denmark, Naples
Q1628773 Q2634
OR((Q3086190,P20,c(Q56061)), (Q18715691,P20,c(Q56061)))
action filter_type
action union
action find
entity Q3086190
relation P20
action find
entity Q18715691
relation P20
type Q56061
François de Fitz-James or Luigi Buccico died in [ANSWERS]
{'OR': [['Q3086190', 'P20', {'concept': 'Q56061'}], ['Q18715691', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?p ) { ( resource:Q3086190 ) ( resource:Q18715691 ) } . ?p property:P20 ?c } . ?c rdf:type ontology:Q56061 }
Paris, Denmark Naples
François de Fitz-James or Luigi Buccico died in Paris, Denmark and Naples
Paris, Denmark Naples
action filter_type
action union
action find
entity François de Fitz-James
relation place of death
action find
entity Luigi Buccico
relation place of death
type administrative territorial entity
{'OR': [['François de Fitz-James', 'place of death', {'concept': 'administrative territorial entity'}], ['Luigi Buccico', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?p ) { ( resource:François_de_Fitz-James ) ( resource:Luigi_Buccico ) } . ?p property:place_of_death ?c } . ?c rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1628773
P17
Q1048835
USER
Which political territory is Paris, Denmark a part of ?
(Q1628773,P17,c(Q1048835))
action filter_type
action find
entity Q1628773
relation P17
type Q1048835
['Q1628773', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { resource:Q1628773 property:P17 ?g . ?g rdf:type ontology:Q1048835 }
Paris, Denmark
action filter_type
action find
entity Paris, Denmark
relation country
type political territorial entity
['Paris, Denmark', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Paris,_Denmark property:country ?g . ?g rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q35
SYSTEM
Denmark
Q35
(Q1628773,P17,c(Q1048835))
action filter_type
action find
entity Q1628773
relation P17
type Q1048835
[ANSWER] is Paris, [ANSWER] a part of
['Q1628773', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { resource:Q1628773 property:P17 ?g . ?g rdf:type ontology:Q1048835 }
Denmark
Denmark is Paris, Denmark a part of
Denmark
action filter_type
action find
entity Paris, Denmark
relation country
type political territorial entity
['Paris, Denmark', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Paris,_Denmark property:country ?g . ?g rdf:type ontology:political_territorial_entity }
[]