Simple Question (Direct)
Simple Question
Q2709928
P69
Q159334
USER
Which secondary school is the alma mater of Brother Ali ?
(Q2709928,P69,c(Q159334))
action filter_type
action find
entity Q2709928
relation P69
type Q159334
['Q2709928', 'P69', {'concept': 'Q159334'}]
SELECT DISTINCT ?z WHERE { resource:Q2709928 property:P69 ?z . ?z rdf:type ontology:Q159334 }
Brother Ali
action filter_type
action find
entity Brother Ali
relation educated at
type secondary school
['Brother Ali', 'educated at', {'concept': 'secondary school'}]
SELECT DISTINCT ?z WHERE { resource:Brother_Ali property:educated_at ?z . ?z rdf:type ontology:secondary_school }
[]
secondary school
Q7341073
SYSTEM
Robbinsdale Cooper High School
Q7341073
(Q2709928,P69,c(Q159334))
action filter_type
action find
entity Q2709928
relation P69
type Q159334
[ANSWER] is the alma mater of Brother Ali
['Q2709928', 'P69', {'concept': 'Q159334'}]
SELECT DISTINCT ?z WHERE { resource:Q2709928 property:P69 ?z . ?z rdf:type ontology:Q159334 }
Robbinsdale Cooper High School
Robbinsdale Cooper High School is the alma mater of Brother Ali
Robbinsdale Cooper High School
action filter_type
action find
entity Brother Ali
relation educated at
type secondary school
['Brother Ali', 'educated at', {'concept': 'secondary school'}]
SELECT DISTINCT ?z WHERE { resource:Brother_Ali property:educated_at ?z . ?z rdf:type ontology:secondary_school }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2709928
P175
Q2031291
USER
Which releases gave the performance of Brother Ali ?
(c(Q2031291),P175,Q2709928)
action filter_type
action find_reverse
entity Q2709928
relation P175
type Q2031291
[{'concept': 'Q2031291'}, 'P175', 'Q2709928']
SELECT DISTINCT ?r WHERE { ?r property:P175 resource:Q2709928 . ?r rdf:type ontology:Q2031291 }
Brother Ali
action filter_type
action find_reverse
entity Brother Ali
relation performer
type release
[{'concept': 'release'}, 'performer', 'Brother Ali']
SELECT DISTINCT ?r WHERE { ?r property:performer resource:Brother_Ali . ?r rdf:type ontology:release }
[]
release
Q6925947 Q7901636 Q5054000
SYSTEM
Mourning in America and Dreaming in Color, Us, Cats Van Bags
Q7901636 Q5054000 Q7460841 Q7848294 Q7336714 Q7771422 Q7882800 Q6925947
(c(Q2031291),P175,Q2709928)
action filter_type
action find_reverse
entity Q2709928
relation P175
type Q2031291
[ANSWERS] gave the performance of Brother Ali
[{'concept': 'Q2031291'}, 'P175', 'Q2709928']
SELECT DISTINCT ?r WHERE { ?r property:P175 resource:Q2709928 . ?r rdf:type ontology:Q2031291 }
Us Cats Van Bags Shadows on the Sun Truth Is Rites of Passage The Undisputed Truth Uncle Sam Goddamn Mourning in America and Dreaming in Color
Mourning in America and Dreaming in Color, Us and Cats Van Bags gave the performance of Brother Ali
Mourning in America and Dreaming in Color Us Cats Van Bags
action filter_type
action find_reverse
entity Brother Ali
relation performer
type release
[{'concept': 'release'}, 'performer', 'Brother Ali']
SELECT DISTINCT ?r WHERE { ?r property:performer resource:Brother_Ali . ?r rdf:type ontology:release }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q6925947 Q7901636 Q5054000
P175
Q502895
USER
What did Mourning in America and Dreaming in Color, Us and Cats Van Bags perform ?
(Q6925947,P175,c(Q502895)) (Q7901636,P175,c(Q502895)) (Q5054000,P175,c(Q502895))
action union
action filter_type
action find
entity Q6925947
relation P175
type Q502895
action filter_type
action find
entity Q7901636
relation P175
type Q502895
action filter_type
action find
entity Q5054000
relation P175
type Q502895
['Q6925947', 'P175', {'concept': 'Q502895'}] ['Q7901636', 'P175', {'concept': 'Q502895'}] ['Q5054000', 'P175', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { VALUES ( ?g ) { ( resource:Q6925947 ) ( resource:Q7901636 ) } . ?g property:P175 ?l }
Mourning in America and Dreaming in Color Us Cats Van Bags
action union
action filter_type
action find
entity Mourning in America and Dreaming in Color
relation performer
type common name
action filter_type
action find
entity Us
relation performer
type common name
action filter_type
action find
entity Cats Van Bags
relation performer
type common name
['Mourning in America and Dreaming in Color', 'performer', {'concept': 'common name'}] ['Us', 'performer', {'concept': 'common name'}] ['Cats Van Bags', 'performer', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { VALUES ( ?g ) { ( resource:Mourning_in_America_and_Dreaming_in_Color ) ( resource:Us ) } . ?g property:performer ?l }
[]
common name
Q2709928 Q2709928 Q2709928
SYSTEM
Brother Ali
Q2709928 Q2709928 Q2709928
(Q6925947,P175,c(Q502895)) (Q7901636,P175,c(Q502895)) (Q5054000,P175,c(Q502895))
action union
action filter_type
action find
entity Q6925947
relation P175
type Q502895
action filter_type
action find
entity Q7901636
relation P175
type Q502895
action filter_type
action find
entity Q5054000
relation P175
type Q502895
[ANSWER], [ANSWER] and [ANSWER] mourned in America and Dreaming in Color, Us and Cats Van Bags perform
['Q6925947', 'P175', {'concept': 'Q502895'}] ['Q7901636', 'P175', {'concept': 'Q502895'}] ['Q5054000', 'P175', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { VALUES ( ?g ) { ( resource:Q6925947 ) ( resource:Q7901636 ) } . ?g property:P175 ?l }
Brother Ali Brother Ali Brother Ali
Brother Ali, Brother Ali and Brother Ali mourned in America and Dreaming in Color, Us and Cats Van Bags perform
Brother Ali Brother Ali Brother Ali
action union
action filter_type
action find
entity Mourning in America and Dreaming in Color
relation performer
type common name
action filter_type
action find
entity Us
relation performer
type common name
action filter_type
action find
entity Cats Van Bags
relation performer
type common name
['Mourning in America and Dreaming in Color', 'performer', {'concept': 'common name'}] ['Us', 'performer', {'concept': 'common name'}] ['Cats Van Bags', 'performer', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { VALUES ( ?g ) { ( resource:Mourning_in_America_and_Dreaming_in_Color ) ( resource:Us ) } . ?g property:performer ?l }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2709928
P140
Q874405
USER
Which social group does Brother Ali relate to ?
(Q2709928,P140,c(Q874405))
action filter_type
action find
entity Q2709928
relation P140
type Q874405
['Q2709928', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?d WHERE { resource:Q2709928 property:P140 ?d . ?d rdf:type ontology:Q874405 }
Brother Ali
action filter_type
action find
entity Brother Ali
relation religion
type social group
['Brother Ali', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?d WHERE { resource:Brother_Ali property:religion ?d . ?d rdf:type ontology:social_group }
[]
social group
Q432
SYSTEM
Islam
Q432
(Q2709928,P140,c(Q874405))
action filter_type
action find
entity Q2709928
relation P140
type Q874405
Brother Ali relates to [ANSWER]
['Q2709928', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?d WHERE { resource:Q2709928 property:P140 ?d . ?d rdf:type ontology:Q874405 }
Islam
Brother Ali relates to Islam
Islam
action filter_type
action find
entity Brother Ali
relation religion
type social group
['Brother Ali', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?d WHERE { resource:Brother_Ali property:religion ?d . ?d rdf:type ontology:social_group }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q313573
Q874405
USER
And how about Agim Çeku?
(Q313573,P140,c(Q874405))
action filter_type
action find
entity Q313573
relation P140
type Q874405
['Q313573', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?s WHERE { resource:Q313573 property:P140 ?s . ?s rdf:type ontology:Q874405 }
Agim Çeku
action filter_type
action find
entity Agim Çeku
relation religion
type social group
['Agim Çeku', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?s WHERE { resource:Agim_Çeku property:religion ?s . ?s rdf:type ontology:social_group }
[]
social group
Q432
SYSTEM
Islam
Q432
(Q313573,P140,c(Q874405))
action filter_type
action find
entity Q313573
relation P140
type Q874405
[ANSWER]
['Q313573', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?s WHERE { resource:Q313573 property:P140 ?s . ?s rdf:type ontology:Q874405 }
Islam
Islam
action filter_type
action find
entity Agim Çeku
relation religion
type social group
['Agim Çeku', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?s WHERE { resource:Agim_Çeku property:religion ?s . ?s rdf:type ontology:social_group }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P361
Q874405 Q781132 Q15619164
USER
How many social groups are greater number of military branches and abstract beings a component of than that social group ?
(c(Q781132)|c(Q15619164),P361,c(Q874405))
action count
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q874405
type Q781132
action find_reverse_tuple_counts
relation P361
type Q874405
type Q15619164
action count
action filter_multi_types
action find_reverse
entity Q432
relation P361
type Q781132
type Q15619164
[[{'concept': 'Q781132'}, {'concept': 'Q15619164'}], 'P361', {'concept': 'Q874405'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?v ) AS ?r ) WHERE { { ?v rdf:type ontology:Q781132 . ?l rdf:type ontology:Q874405 . ?v property:P361 ?l } UNION { ?v property:P361 ?l . ?l rdf:type ontology:Q874405 . ?v rdf:type ontology:Q15619164 } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { { { ?q rdf:type ontology:Q781132 } UNION { ?q rdf:type ontology:Q15619164 } } . ?q property:P361 resource:Q432 } } . FILTER ( ?r > ?o ) }
action count
action greater
action union
action find_reverse_tuple_counts
relation part of
type social group
type military branch
action find_reverse_tuple_counts
relation part of
type social group
type abstract being
action count
action filter_multi_types
action find_reverse
entity Islam
relation part of
type military branch
type abstract being
[[{'concept': 'military branch'}, {'concept': 'abstract being'}], 'part of', {'concept': 'social group'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?v ) AS ?r ) WHERE { { ?v rdf:type ontology:military_branch . ?l rdf:type ontology:social_group . ?v property:part_of ?l } UNION { ?v property:part_of ?l . ?l rdf:type ontology:social_group . ?v rdf:type ontology:abstract_being } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { { { ?q rdf:type ontology:military_branch } UNION { ?q rdf:type ontology:abstract_being } } . ?q property:part_of resource:Islam } } . FILTER ( ?r > ?o ) }
[]
social group military branch abstract being
SYSTEM
9
Q797944 Q31901 Q9089 Q1130378 Q275051 Q748 Q7915590 Q447131 Q1086440
(c(Q781132)|c(Q15619164),P361,c(Q874405))
action count
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q874405
type Q781132
action find_reverse_tuple_counts
relation P361
type Q874405
type Q15619164
action count
action filter_multi_types
action find_reverse
entity Q432
relation P361
type Q781132
type Q15619164
[ANSWER]
[[{'concept': 'Q781132'}, {'concept': 'Q15619164'}], 'P361', {'concept': 'Q874405'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?v ) AS ?r ) WHERE { { ?v rdf:type ontology:Q781132 . ?l rdf:type ontology:Q874405 . ?v property:P361 ?l } UNION { ?v property:P361 ?l . ?l rdf:type ontology:Q874405 . ?v rdf:type ontology:Q15619164 } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { { { ?q rdf:type ontology:Q781132 } UNION { ?q rdf:type ontology:Q15619164 } } . ?q property:P361 resource:Q432 } } . FILTER ( ?r > ?o ) }
Babylonian religion Joint Special Operations Command Hinduism Persian mythology Sumerian religion Buddhism Soviet Armed Forces religion of ancient Egypt Yoruba religion
9
action count
action greater
action union
action find_reverse_tuple_counts
relation part of
type social group
type military branch
action find_reverse_tuple_counts
relation part of
type social group
type abstract being
action count
action filter_multi_types
action find_reverse
entity Islam
relation part of
type military branch
type abstract being
[[{'concept': 'military branch'}, {'concept': 'abstract being'}], 'part of', {'concept': 'social group'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?v ) AS ?r ) WHERE { { ?v rdf:type ontology:military_branch . ?l rdf:type ontology:social_group . ?v property:part_of ?l } UNION { ?v property:part_of ?l . ?l rdf:type ontology:social_group . ?v rdf:type ontology:abstract_being } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { { { ?q rdf:type ontology:military_branch } UNION { ?q rdf:type ontology:abstract_being } } . ?q property:part_of resource:Islam } } . FILTER ( ?r > ?o ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q5194639
P137
Q874405 Q811979
USER
Which architectural structures can be described as facility operator of more number of social groups than Curb Event Center ?
(c(Q811979),P137,c(Q874405))
action greater
action find_tuple_counts
relation P137
type Q811979
type Q874405
action count
action filter_type
action find
entity Q5194639
relation P137
type Q811979
[{'concept': 'Q811979'}, 'P137', {'concept': 'Q874405'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { resource:Q5194639 property:P137 ?m . ?m rdf:type ontology:Q811979 } } . FILTER ( ?x > ?w ) . { SELECT DISTINCT ?h ( COUNT ( ?y ) AS ?x ) WHERE { ?h property:P137 ?y . ?h rdf:type ontology:Q811979 . ?y rdf:type ontology:Q874405 } GROUP BY ?h } }
Curb Event Center
action greater
action find_tuple_counts
relation operator
type architectural structure
type social group
action count
action filter_type
action find
entity Curb Event Center
relation operator
type architectural structure
[{'concept': 'architectural structure'}, 'operator', {'concept': 'social group'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { resource:Curb_Event_Center property:operator ?m . ?m rdf:type ontology:architectural_structure } } . FILTER ( ?x > ?w ) . { SELECT DISTINCT ?h ( COUNT ( ?y ) AS ?x ) WHERE { ?h property:operator ?y . ?h rdf:type ontology:architectural_structure . ?y rdf:type ontology:social_group } GROUP BY ?h } }
[]
social group architectural structure
Q7339076 Q2141932 Q3115714
SYSTEM
Rizal Memorial Baseball Stadium, Rizal Memorial Coliseum, Odsal Stadium
Q7339076 Q2750585 Q855251 Q5929314 Q2616959 Q7248670 Q5930591 Q7039115 Q626914 Q3338927 Q2141932 Q7233696 Q3115714
(c(Q811979),P137,c(Q874405))
action greater
action find_tuple_counts
relation P137
type Q811979
type Q874405
action count
action filter_type
action find
entity Q5194639
relation P137
type Q811979
[ANSWERS] can be described as facility operator of more number of social groups than Curb Event Center
[{'concept': 'Q811979'}, 'P137', {'concept': 'Q874405'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { resource:Q5194639 property:P137 ?m . ?m rdf:type ontology:Q811979 } } . FILTER ( ?x > ?w ) . { SELECT DISTINCT ?h ( COUNT ( ?y ) AS ?x ) WHERE { ?h property:P137 ?y . ?h rdf:type ontology:Q811979 . ?y rdf:type ontology:Q874405 } GROUP BY ?h } }
Rizal Memorial Baseball Stadium chancery Tsing Yi Sports Ground Yuen Long Stadium PhilSports Arena Shing Mun Valley Sports Ground Tuen Mun Tang Shiu Kin Sports Ground Ninoy Aquino Stadium Sky Blu Craven Park, Hull Rizal Memorial Coliseum Post Office Road Odsal Stadium
Rizal Memorial Baseball Stadium, Rizal Memorial Coliseum and Odsal Stadium can be described as facility operator of more number of social groups than Curb Event Center
Rizal Memorial Baseball Stadium Rizal Memorial Coliseum Odsal Stadium
action greater
action find_tuple_counts
relation operator
type architectural structure
type social group
action count
action filter_type
action find
entity Curb Event Center
relation operator
type architectural structure
[{'concept': 'architectural structure'}, 'operator', {'concept': 'social group'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { resource:Curb_Event_Center property:operator ?m . ?m rdf:type ontology:architectural_structure } } . FILTER ( ?x > ?w ) . { SELECT DISTINCT ?h ( COUNT ( ?y ) AS ?x ) WHERE { ?h property:operator ?y . ?h rdf:type ontology:architectural_structure . ?y rdf:type ontology:social_group } GROUP BY ?h } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q2031291 Q15619164 Q482994
USER
Which releases are around 1 abstract beings or albums a component of ?
(c(Q15619164)|c(Q482994),P361,c(Q2031291))
action approx
action union
action find_reverse_tuple_counts
relation P361
type Q2031291
type Q15619164
action find_reverse_tuple_counts
relation P361
type Q2031291
type Q482994
value 1
[[{'concept': 'Q15619164'}, {'concept': 'Q482994'}], 'P361', {'concept': 'Q2031291'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) ?v WHERE { { ?s property:P361 ?v . ?s rdf:type ontology:Q15619164 . ?v rdf:type ontology:Q2031291 } UNION { ?v rdf:type ontology:Q2031291 . ?s rdf:type ontology:Q482994 . ?s property:P361 ?v } } GROUP BY ?v } . FILTER ( ?u = 1 ) }
action approx
action union
action find_reverse_tuple_counts
relation part of
type release
type abstract being
action find_reverse_tuple_counts
relation part of
type release
type album
value 1
[[{'concept': 'abstract being'}, {'concept': 'album'}], 'part of', {'concept': 'release'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) ?v WHERE { { ?s property:part_of ?v . ?s rdf:type ontology:abstract_being . ?v rdf:type ontology:release } UNION { ?v rdf:type ontology:release . ?s rdf:type ontology:album . ?s property:part_of ?v } } GROUP BY ?v } . FILTER ( ?u = 1 ) }
[]
release abstract being album
Q907040 Q1931837
SYSTEM
Polaris, Emmerdale
Q907040 Q1931837
(c(Q15619164)|c(Q482994),P361,c(Q2031291))
action approx
action union
action find_reverse_tuple_counts
relation P361
type Q2031291
type Q15619164
action find_reverse_tuple_counts
relation P361
type Q2031291
type Q482994
value 1
[ANSWERS] are around 1 abstract beings or albums a component of
[[{'concept': 'Q15619164'}, {'concept': 'Q482994'}], 'P361', {'concept': 'Q2031291'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) ?v WHERE { { ?s property:P361 ?v . ?s rdf:type ontology:Q15619164 . ?v rdf:type ontology:Q2031291 } UNION { ?v rdf:type ontology:Q2031291 . ?s rdf:type ontology:Q482994 . ?s property:P361 ?v } } GROUP BY ?v } . FILTER ( ?u = 1 ) }
Polaris Emmerdale
Polaris and Emmerdale are around 1 abstract beings or albums a component of
Polaris Emmerdale
action approx
action union
action find_reverse_tuple_counts
relation part of
type release
type abstract being
action find_reverse_tuple_counts
relation part of
type release
type album
value 1
[[{'concept': 'abstract being'}, {'concept': 'album'}], 'part of', {'concept': 'release'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) ?v WHERE { { ?s property:part_of ?v . ?s rdf:type ontology:abstract_being . ?v rdf:type ontology:release } UNION { ?v rdf:type ontology:release . ?s rdf:type ontology:album . ?s property:part_of ?v } } GROUP BY ?v } . FILTER ( ?u = 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1286387 Q432
P112 P161
Q502895
USER
Which people founded Islam or were casted in The Cat in the Hat ?
OR((Q432,P112,c(Q502895)), (Q1286387,P161,c(Q502895)))
action filter_type
action union
action find
entity Q432
relation P112
action find
entity Q1286387
relation P161
type Q502895
{'OR': [['Q432', 'P112', {'concept': 'Q502895'}], ['Q1286387', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q432 property:P112 ?b } UNION { resource:Q1286387 property:P161 ?b } } . ?b rdf:type ontology:Q502895 }
The Cat in the Hat Islam
action filter_type
action union
action find
entity Islam
relation founder
action find
entity The Cat in the Hat
relation cast member
type common name
{'OR': [['Islam', 'founder', {'concept': 'common name'}], ['The Cat in the Hat', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Islam property:founder ?b } UNION { resource:The_Cat_in_the_Hat property:cast_member ?b } } . ?b rdf:type ontology:common_name }
[]
common name
Q1101612 Q223033 Q9458 Q236842 Q185724 Q2469967 Q170572 Q3175841 Q115541 Q47899
SYSTEM
Some of them are Clint Howard, Sean Hayes, Muhammad, Kelly Preston, Mike Myers, Amy Hill, Alec Baldwin, Steven Anthony Lawrence, Dakota Fanning, Paris Hilton
Q115541 Q185724 Q2469967 Q9458 Q236842 Q723021 Q1101612 Q47899 Q251984 Q170572 Q223033 Q3175841
OR((Q432,P112,c(Q502895)), (Q1286387,P161,c(Q502895)))
action filter_type
action union
action find
entity Q432
relation P112
action find
entity Q1286387
relation P161
type Q502895
[ANSWERS] founded Islam or were casted in The Cat in the Hat
{'OR': [['Q432', 'P112', {'concept': 'Q502895'}], ['Q1286387', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q432 property:P112 ?b } UNION { resource:Q1286387 property:P161 ?b } } . ?b rdf:type ontology:Q502895 }
Dakota Fanning Mike Myers Amy Hill Muhammad Kelly Preston Daran Norris Clint Howard Paris Hilton Spencer Breslin Alec Baldwin Sean Hayes Steven Anthony Lawrence
Clint Howard, Sean Hayes, Muhammad, Kelly Preston, Mike Myers, Amy Hill, Alec Baldwin, Steven Anthony Lawrence, Dakota Fanning and Paris Hilton founded Islam or were casted in The Cat in the Hat
Clint Howard Sean Hayes Muhammad Kelly Preston Mike Myers Amy Hill Alec Baldwin Steven Anthony Lawrence Dakota Fanning Paris Hilton
action filter_type
action union
action find
entity Islam
relation founder
action find
entity The Cat in the Hat
relation cast member
type common name
{'OR': [['Islam', 'founder', {'concept': 'common name'}], ['The Cat in the Hat', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Islam property:founder ?b } UNION { resource:The_Cat_in_the_Hat property:cast_member ?b } } . ?b rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q9458
P7
Q502895
USER
Who has Muhammad as their sibling ?
(c(Q502895),P7,Q9458)
action filter_type
action find_reverse
entity Q9458
relation P7
type Q502895
[{'concept': 'Q502895'}, 'P7', 'Q9458']
SELECT DISTINCT ?h WHERE { ?h property:P7 resource:Q9458 . ?h rdf:type ontology:Q502895 }
Muhammad
action filter_type
action find_reverse
entity Muhammad
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Muhammad']
SELECT DISTINCT ?h WHERE { ?h property:brother resource:Muhammad . ?h rdf:type ontology:common_name }
[]
common name
Q1111208
SYSTEM
Zaynab bint Ali
Q1111208
(c(Q502895),P7,Q9458)
action filter_type
action find_reverse
entity Q9458
relation P7
type Q502895
[ANSWER] has Muhammad as their sibling
[{'concept': 'Q502895'}, 'P7', 'Q9458']
SELECT DISTINCT ?h WHERE { ?h property:P7 resource:Q9458 . ?h rdf:type ontology:Q502895 }
Zaynab bint Ali
Zaynab bint Ali has Muhammad as their sibling
Zaynab bint Ali
action filter_type
action find_reverse
entity Muhammad
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Muhammad']
SELECT DISTINCT ?h WHERE { ?h property:brother resource:Muhammad . ?h rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1111208
P26
Q502895
USER
Who is married to that one ?
(c(Q502895),P26,Q1111208)
action filter_type
action find
entity Q1111208
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q1111208']
SELECT DISTINCT ?l WHERE { resource:Q1111208 property:P26 ?l . ?l rdf:type ontology:Q502895 }
Zaynab bint Ali
action filter_type
action find
entity Zaynab bint Ali
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Zaynab bint Ali']
SELECT DISTINCT ?l WHERE { resource:Zaynab_bint_Ali property:spouse ?l . ?l rdf:type ontology:common_name }
[]
common name
Q1112978
SYSTEM
Abdullah ibn Ja'far
Q1112978
(c(Q502895),P26,Q1111208)
action filter_type
action find
entity Q1111208
relation P26
type Q502895
[ANSWER] is married to that one
[{'concept': 'Q502895'}, 'P26', 'Q1111208']
SELECT DISTINCT ?l WHERE { resource:Q1111208 property:P26 ?l . ?l rdf:type ontology:Q502895 }
Abdullah ibn Ja'far
Abdullah ibn Ja'far is married to that one
Abdullah ibn Ja'far
action filter_type
action find
entity Zaynab bint Ali
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Zaynab bint Ali']
SELECT DISTINCT ?l WHERE { resource:Zaynab_bint_Ali property:spouse ?l . ?l rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q1112978 Q1147498
P40
Q502895
USER
Does Ja'far ibn Abī Tālib have that one as a child ?
(Q1147498,P40,Q1112978)
action is_in
entity Q1112978
action find
entity Q1147498
relation P40
['Q1147498', 'P40', 'Q1112978']
ASK WHERE { resource:Q1147498 property:P40 resource:Q1112978 }
Abdullah ibn Ja'far Ja'far ibn Abī Tālib
action is_in
entity Abdullah ibn Ja'far
action find
entity Ja'far ibn Abī Tālib
relation child
["Ja'far ibn Abī Tālib", 'child', "Abdullah ibn Ja'far"]
ASK WHERE { resource:Ja'far_ibn_Abī_Tālib property:child resource:Abdullah_ibn_Ja'far }
[]
common name
SYSTEM
YES
(Q1147498,P40,Q1112978)
action is_in
entity Q1112978
action find
entity Q1147498
relation P40
[ANSWER]
['Q1147498', 'P40', 'Q1112978']
ASK WHERE { resource:Q1147498 property:P40 resource:Q1112978 }
Yes
action is_in
entity Abdullah ibn Ja'far
action find
entity Ja'far ibn Abī Tālib
relation child
["Ja'far ibn Abī Tālib", 'child', "Abdullah ibn Ja'far"]
ASK WHERE { resource:Ja'far_ibn_Abī_Tālib property:child resource:Abdullah_ibn_Ja'far }
[]