Simple Question (Direct)
Simple Question
Q1959902
P26
Q502895
USER
Which person is married to John V, Count of Harcourt ?
(Q1959902,P26,c(Q502895))
action filter_type
action find
entity Q1959902
relation P26
type Q502895
['Q1959902', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . resource:Q1959902 property:P26 ?e }
John V, Count of Harcourt
action filter_type
action find
entity John V, Count of Harcourt
relation spouse
type common name
['John V, Count of Harcourt', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . resource:John_V,_Count_of_Harcourt property:spouse ?e }
[]
common name
Q663986
SYSTEM
Blanche of Ponthieu
Q663986
(Q1959902,P26,c(Q502895))
action filter_type
action find
entity Q1959902
relation P26
type Q502895
[ANSWER] is married to John V, Count of Harcourt
['Q1959902', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . resource:Q1959902 property:P26 ?e }
Blanche of Ponthieu
Blanche of Ponthieu is married to John V, Count of Harcourt
Blanche of Ponthieu
action filter_type
action find
entity John V, Count of Harcourt
relation spouse
type common name
['John V, Count of Harcourt', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . resource:John_V,_Count_of_Harcourt property:spouse ?e }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1959902
P22
Q502895
USER
Which people have John V, Count of Harcourt as dad ?
(c(Q502895),P22,Q1959902)
action filter_type
action find_reverse
entity Q1959902
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q1959902']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q502895 . ?v property:P22 resource:Q1959902 }
John V, Count of Harcourt
action filter_type
action find_reverse
entity John V, Count of Harcourt
relation father
type common name
[{'concept': 'common name'}, 'father', 'John V, Count of Harcourt']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:common_name . ?v property:father resource:John_V,_Count_of_Harcourt }
[]
common name
Q3380900 Q2399088
SYSTEM
Philippe d'Harcourt, John VI, Count of Harcourt
Q3380900 Q2399088
(c(Q502895),P22,Q1959902)
action filter_type
action find_reverse
entity Q1959902
relation P22
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P22', 'Q1959902']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q502895 . ?v property:P22 resource:Q1959902 }
Philippe d'Harcourt John VI, Count of Harcourt
Philippe d'Harcourt and John VI, Count of Harcourt have John V, Count of Harcourt as dad
Philippe d'Harcourt John VI, Count of Harcourt
action filter_type
action find_reverse
entity John V, Count of Harcourt
relation father
type common name
[{'concept': 'common name'}, 'father', 'John V, Count of Harcourt']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:common_name . ?v property:father resource:John_V,_Count_of_Harcourt }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3380900
P7
Q502895
USER
Who has Philippe d'Harcourt as their sibling ?
(c(Q502895),P7,Q3380900)
action filter_type
action find
entity Q3380900
relation P7
type Q502895
[{'concept': 'Q502895'}, 'P7', 'Q3380900']
SELECT DISTINCT ?h WHERE { resource:Q3380900 property:P7 ?h . ?h rdf:type ontology:Q502895 }
Philippe d'Harcourt
action filter_type
action find
entity Philippe d'Harcourt
relation brother
type common name
[{'concept': 'common name'}, 'brother', "Philippe d'Harcourt"]
SELECT DISTINCT ?h WHERE { resource:Philippe_d'Harcourt property:brother ?h . ?h rdf:type ontology:common_name }
[]
common name
Q2399088
SYSTEM
John VI, Count of Harcourt
Q2399088
(c(Q502895),P7,Q3380900)
action filter_type
action find
entity Q3380900
relation P7
type Q502895
[ANSWER] has Philippe d'Harcourt as their sibling
[{'concept': 'Q502895'}, 'P7', 'Q3380900']
SELECT DISTINCT ?h WHERE { resource:Q3380900 property:P7 ?h . ?h rdf:type ontology:Q502895 }
John VI, Count of Harcourt
John VI, Count of Harcourt has Philippe d'Harcourt as their sibling
John VI, Count of Harcourt
action filter_type
action find
entity Philippe d'Harcourt
relation brother
type common name
[{'concept': 'common name'}, 'brother', "Philippe d'Harcourt"]
SELECT DISTINCT ?h WHERE { resource:Philippe_d'Harcourt property:brother ?h . ?h rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3380900
P40
Q502895
USER
Which person is a successor of Philippe d'Harcourt ?
(Q3380900,P40,c(Q502895))
action filter_type
action find
entity Q3380900
relation P40
type Q502895
['Q3380900', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q3380900 property:P40 ?w . ?w rdf:type ontology:Q502895 }
Philippe d'Harcourt
action filter_type
action find
entity Philippe d'Harcourt
relation child
type common name
["Philippe d'Harcourt", 'child', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Philippe_d'Harcourt property:child ?w . ?w rdf:type ontology:common_name }
[]
common name
Q3124393
SYSTEM
Gérard d'Harcourt
Q3124393
(Q3380900,P40,c(Q502895))
action filter_type
action find
entity Q3380900
relation P40
type Q502895
[ANSWER] is a successor of Philippe d'Harcourt
['Q3380900', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q3380900 property:P40 ?w . ?w rdf:type ontology:Q502895 }
Gérard d'Harcourt
Gérard d'Harcourt is a successor of Philippe d'Harcourt
Gérard d'Harcourt
action filter_type
action find
entity Philippe d'Harcourt
relation child
type common name
["Philippe d'Harcourt", 'child', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Philippe_d'Harcourt property:child ?w . ?w rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q2388260
P725
Q502895 Q1001378
USER
How many cinematic techniques had their voice dubbing done by more number of people than The Humpbacked Horse ?
(c(Q1001378),P725,c(Q502895))
action count
action greater
action find_tuple_counts
relation P725
type Q1001378
type Q502895
action count
action filter_type
action find
entity Q2388260
relation P725
type Q1001378
[{'concept': 'Q1001378'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?e ) AS ?q ) WHERE { ?w property:P725 ?e . ?w rdf:type ontology:Q1001378 . ?e rdf:type ontology:Q502895 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { ?u rdf:type ontology:Q1001378 . resource:Q2388260 property:P725 ?u } } . FILTER ( ?q > ?m ) }
The Humpbacked Horse
action count
action greater
action find_tuple_counts
relation voice actor
type cinematic technique
type common name
action count
action filter_type
action find
entity The Humpbacked Horse
relation voice actor
type cinematic technique
[{'concept': 'cinematic technique'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?e ) AS ?q ) WHERE { ?w property:voice_actor ?e . ?w rdf:type ontology:cinematic_technique . ?e rdf:type ontology:common_name } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { ?u rdf:type ontology:cinematic_technique . resource:The_Humpbacked_Horse property:voice_actor ?u } } . FILTER ( ?q > ?m ) }
[]
common name cinematic technique
SYSTEM
24
Q656998 Q6505964 Q120367 Q1093555 Q15270742 Q15270647 Q27229786 Q2329413 Q9321426 Q6144664 Q392530 Q192212 Q182153 Q15728879 Q2388653 Q246283 Q244434 Q18647981 Q191803 Q171048 Q15140309 Q4243413 Q329603 Q633053
(c(Q1001378),P725,c(Q502895))
action count
action greater
action find_tuple_counts
relation P725
type Q1001378
type Q502895
action count
action filter_type
action find
entity Q2388260
relation P725
type Q1001378
[ANSWER]
[{'concept': 'Q1001378'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?e ) AS ?q ) WHERE { ?w property:P725 ?e . ?w rdf:type ontology:Q1001378 . ?e rdf:type ontology:Q502895 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { ?u rdf:type ontology:Q1001378 . resource:Q2388260 property:P725 ?u } } . FILTER ( ?q > ?m ) }
Garfield's Pet Force Rudolph the Red-Nosed Reindeer: The Movie Shark Tale Swan Lake Adventures of Mowgli Zootopia The Animated Adventures of Tom Sawyer Barbie as the Princess and the Pauper Finding Dory Inside Out Treasure Planet Cars 2 Cars My Little Pony: Equestria Girls 2 – Rainbow Rocks Tom Sawyer Frozen Lady and the Tramp II: Scamp's Adventure Moana The Lion King II: Simba's Pride Toy Story Emil & Ida i Lönneberga Ku! Kin-dza-dza Laura's Star Surf's Up
24
action count
action greater
action find_tuple_counts
relation voice actor
type cinematic technique
type common name
action count
action filter_type
action find
entity The Humpbacked Horse
relation voice actor
type cinematic technique
[{'concept': 'cinematic technique'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?e ) AS ?q ) WHERE { ?w property:voice_actor ?e . ?w rdf:type ontology:cinematic_technique . ?e rdf:type ontology:common_name } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { ?u rdf:type ontology:cinematic_technique . resource:The_Humpbacked_Horse property:voice_actor ?u } } . FILTER ( ?q > ?m ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments can around 2144 people perform with ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2144
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?e ) AS ?w ) WHERE { ?c rdf:type ontology:Q34379 . ?e rdf:type ontology:Q502895 . ?e property:P1303 ?c } GROUP BY ?c } . FILTER ( ?w = 2144 ) }
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2144
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?e ) AS ?w ) WHERE { ?c rdf:type ontology:musical_instrument . ?e rdf:type ontology:common_name . ?e property:instrument ?c } GROUP BY ?c } . FILTER ( ?w = 2144 ) }
[]
musical instrument common name
SYSTEM
5
Q46185 Q8338 Q8371 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2144
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?e ) AS ?w ) WHERE { ?c rdf:type ontology:Q34379 . ?e rdf:type ontology:Q502895 . ?e property:P1303 ?c } GROUP BY ?c } . FILTER ( ?w = 2144 ) }
bass guitar trumpet cello organ drum kit
5
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2144
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?e ) AS ?w ) WHERE { ?c rdf:type ontology:musical_instrument . ?e rdf:type ontology:common_name . ?e property:instrument ?c } GROUP BY ?c } . FILTER ( ?w = 2144 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q778520 Q2399088
P40
Q502895
USER
Which people have John VI, Count of Harcourt or Diana Turbay as an offspring ?
OR((c(Q502895),P40,Q2399088), (c(Q502895),P40,Q778520))
action filter_type
action union
action find_reverse
entity Q2399088
relation P40
action find_reverse
entity Q778520
relation P40
type Q502895
{'OR': [[{'concept': 'Q502895'}, 'P40', 'Q2399088'], [{'concept': 'Q502895'}, 'P40', 'Q778520']]}
SELECT DISTINCT ?d WHERE { { { ?d property:P40 resource:Q778520 } UNION { ?d property:P40 resource:Q2399088 } } . ?d rdf:type ontology:Q502895 }
Diana Turbay John VI, Count of Harcourt
action filter_type
action union
action find_reverse
entity John VI, Count of Harcourt
relation child
action find_reverse
entity Diana Turbay
relation child
type common name
{'OR': [[{'concept': 'common name'}, 'child', 'John VI, Count of Harcourt'], [{'concept': 'common name'}, 'child', 'Diana Turbay']]}
SELECT DISTINCT ?d WHERE { { { ?d property:child resource:Diana_Turbay } UNION { ?d property:child resource:John_VI,_Count_of_Harcourt } } . ?d rdf:type ontology:common_name }
[]
common name
Q663986 Q1959902 Q356957
SYSTEM
Blanche of Ponthieu, John V, Count of Harcourt, Julio César Turbay Ayala
Q663986 Q1959902 Q356957
OR((c(Q502895),P40,Q2399088), (c(Q502895),P40,Q778520))
action filter_type
action union
action find_reverse
entity Q2399088
relation P40
action find_reverse
entity Q778520
relation P40
type Q502895
[ANSWERS] have John VI, Count of Harcourt or Diana Turbay as an offspring
{'OR': [[{'concept': 'Q502895'}, 'P40', 'Q2399088'], [{'concept': 'Q502895'}, 'P40', 'Q778520']]}
SELECT DISTINCT ?d WHERE { { { ?d property:P40 resource:Q778520 } UNION { ?d property:P40 resource:Q2399088 } } . ?d rdf:type ontology:Q502895 }
Blanche of Ponthieu John V, Count of Harcourt Julio César Turbay Ayala
Blanche of Ponthieu, John V, Count of Harcourt and Julio César Turbay Ayala have John VI, Count of Harcourt or Diana Turbay as an offspring
Blanche of Ponthieu John V, Count of Harcourt Julio César Turbay Ayala
action filter_type
action union
action find_reverse
entity John VI, Count of Harcourt
relation child
action find_reverse
entity Diana Turbay
relation child
type common name
{'OR': [[{'concept': 'common name'}, 'child', 'John VI, Count of Harcourt'], [{'concept': 'common name'}, 'child', 'Diana Turbay']]}
SELECT DISTINCT ?d WHERE { { { ?d property:child resource:Diana_Turbay } UNION { ?d property:child resource:John_VI,_Count_of_Harcourt } } . ?d rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q663986 Q1959902 Q356957
P40
Q502895
USER
Who are the children of Blanche of Ponthieu, John V, Count of Harcourt and Julio César Turbay Ayala ?
(Q663986,P40,c(Q502895)) (Q1959902,P40,c(Q502895)) (Q356957,P40,c(Q502895))
action union
action filter_type
action find
entity Q663986
relation P40
type Q502895
action filter_type
action find
entity Q1959902
relation P40
type Q502895
action filter_type
action find
entity Q356957
relation P40
type Q502895
['Q663986', 'P40', {'concept': 'Q502895'}] ['Q1959902', 'P40', {'concept': 'Q502895'}] ['Q356957', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { { ?q rdf:type ontology:Q502895 . resource:Q663986 property:P40 ?q } UNION { resource:Q1959902 property:P40 ?q . ?q rdf:type ontology:Q502895 } }
Blanche of Ponthieu John V, Count of Harcourt Julio César Turbay Ayala
action union
action filter_type
action find
entity Blanche of Ponthieu
relation child
type common name
action filter_type
action find
entity John V, Count of Harcourt
relation child
type common name
action filter_type
action find
entity Julio César Turbay Ayala
relation child
type common name
['Blanche of Ponthieu', 'child', {'concept': 'common name'}] ['John V, Count of Harcourt', 'child', {'concept': 'common name'}] ['Julio César Turbay Ayala', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { { ?q rdf:type ontology:common_name . resource:Blanche_of_Ponthieu property:child ?q } UNION { resource:John_V,_Count_of_Harcourt property:child ?q . ?q rdf:type ontology:common_name } }
[]
common name
Q2399088 Q2399088 Q778520
SYSTEM
John VI, Count of Harcourt for 1st, 2nd, Diana Turbay for 3rd
Q3380900 Q2399088 Q3380900 Q2399088 Q778520
(Q663986,P40,c(Q502895)) (Q1959902,P40,c(Q502895)) (Q356957,P40,c(Q502895))
action union
action filter_type
action find
entity Q663986
relation P40
type Q502895
action filter_type
action find
entity Q1959902
relation P40
type Q502895
action filter_type
action find
entity Q356957
relation P40
type Q502895
[ANSWERS]
['Q663986', 'P40', {'concept': 'Q502895'}] ['Q1959902', 'P40', {'concept': 'Q502895'}] ['Q356957', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { { ?q rdf:type ontology:Q502895 . resource:Q663986 property:P40 ?q } UNION { resource:Q1959902 property:P40 ?q . ?q rdf:type ontology:Q502895 } }
Philippe d'Harcourt John VI, Count of Harcourt Philippe d'Harcourt John VI, Count of Harcourt Diana Turbay
The children of Blanche of Ponthieu , John V , Count of Harcourt and Julio César Turbay are born John VI, Count of Harcourt, John VI, Count of Harcourt and Diana Turbay
John VI, Count of Harcourt John VI, Count of Harcourt Diana Turbay
action union
action filter_type
action find
entity Blanche of Ponthieu
relation child
type common name
action filter_type
action find
entity John V, Count of Harcourt
relation child
type common name
action filter_type
action find
entity Julio César Turbay Ayala
relation child
type common name
['Blanche of Ponthieu', 'child', {'concept': 'common name'}] ['John V, Count of Harcourt', 'child', {'concept': 'common name'}] ['Julio César Turbay Ayala', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { { ?q rdf:type ontology:common_name . resource:Blanche_of_Ponthieu property:child ?q } UNION { resource:John_V,_Count_of_Harcourt property:child ?q . ?q rdf:type ontology:common_name } }
[]