Simple Question (Direct)
Simple Question
Q7309828
P161
Q502895
USER
Which people are in Rehnaa Hai Terre Dil Mein ?
(Q7309828,P161,c(Q502895))
action filter_type
action find
entity Q7309828
relation P161
type Q502895
['Q7309828', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q7309828 property:P161 ?m . ?m rdf:type ontology:Q502895 }
Rehnaa Hai Terre Dil Mein
action filter_type
action find
entity Rehnaa Hai Terre Dil Mein
relation cast member
type common name
['Rehnaa Hai Terre Dil Mein', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Rehnaa_Hai_Terre_Dil_Mein property:cast_member ?m . ?m rdf:type ontology:common_name }
[]
common name
Q252290 Q560163 Q466080
SYSTEM
Saif Ali Khan, Anupam Kher, Dia Mirza
Q466080 Q729982 Q252290 Q560163
(Q7309828,P161,c(Q502895))
action filter_type
action find
entity Q7309828
relation P161
type Q502895
[ANSWERS] are in Rehnaa Hai Terre Dil Mein
['Q7309828', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q7309828 property:P161 ?m . ?m rdf:type ontology:Q502895 }
Dia Mirza R. Madhavan Saif Ali Khan Anupam Kher
Saif Ali Khan, Anupam Kher and Dia Mirza are in Rehnaa Hai Terre Dil Mein
Saif Ali Khan Anupam Kher Dia Mirza
action filter_type
action find
entity Rehnaa Hai Terre Dil Mein
relation cast member
type common name
['Rehnaa Hai Terre Dil Mein', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Rehnaa_Hai_Terre_Dil_Mein property:cast_member ?m . ?m rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q252290
P26
Q502895
USER
Who are the spouses of Saif Ali Khan ?
(Q252290,P26,c(Q502895))
action filter_type
action find
entity Q252290
relation P26
type Q502895
['Q252290', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q252290 property:P26 ?m . ?m rdf:type ontology:Q502895 }
Saif Ali Khan
action filter_type
action find
entity Saif Ali Khan
relation spouse
type common name
['Saif Ali Khan', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Saif_Ali_Khan property:spouse ?m . ?m rdf:type ontology:common_name }
[]
common name
Q184885 Q2670291
SYSTEM
Kareena Kapoor, Amrita Singh
Q184885 Q2670291
(Q252290,P26,c(Q502895))
action filter_type
action find
entity Q252290
relation P26
type Q502895
The spouses of Saif Ali Khan are also [ANSWERS]
['Q252290', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q252290 property:P26 ?m . ?m rdf:type ontology:Q502895 }
Kareena Kapoor Amrita Singh
The spouses of Saif Ali Khan are also Kareena Kapoor and Amrita Singh
Kareena Kapoor Amrita Singh
action filter_type
action find
entity Saif Ali Khan
relation spouse
type common name
['Saif Ali Khan', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Saif_Ali_Khan property:spouse ?m . ?m rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2670291
P40
Q502895
USER
Who has that one as an offspring ?
(c(Q502895),P40,Q2670291)
action filter_type
action find_reverse
entity Q2670291
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q2670291']
SELECT DISTINCT ?w WHERE { ?w property:P40 resource:Q2670291 . ?w rdf:type ontology:Q502895 }
Amrita Singh
action filter_type
action find_reverse
entity Amrita Singh
relation child
type common name
[{'concept': 'common name'}, 'child', 'Amrita Singh']
SELECT DISTINCT ?w WHERE { ?w property:child resource:Amrita_Singh . ?w rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q184885
SYSTEM
Did you mean Kareena Kapoor ?
Q184885 Q2670291
(c(Q502895),P40,Q184885) (c(Q502895),P40,Q2670291)
[ANSWER]
[{'concept': 'Q502895'}, 'P40', 'Q184885'] [{'concept': 'Q502895'}, 'P40', 'Q2670291']
SELECT DISTINCT ?w WHERE { ?w property:P40 resource:Q2670291 . ?w rdf:type ontology:Q502895 }
Kareena Kapoor Amrita Singh
Did you mean Kareena Kapoor ?
Kareena Kapoor
[{'concept': 'common name'}, 'child', 'Kareena Kapoor'] [{'concept': 'common name'}, 'child', 'Amrita Singh']
SELECT DISTINCT ?w WHERE { ?w property:child resource:Amrita_Singh . ?w rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Amrita Singh. Could you tell me the answer for that?
(c(Q502895),P40,Q2670291)
Q2670291
[{'concept': 'Q502895'}, 'P40', 'Q2670291']
[{'concept': 'common name'}, 'child', 'Amrita Singh']
[]
Q7378860
SYSTEM
Rukhsana Sultana
Q7378860
(c(Q502895),P40,Q2670291)
action filter_type
action find_reverse
entity Q2670291
relation P40
type Q502895
[ANSWER] has that one as an offspring
[{'concept': 'Q502895'}, 'P40', 'Q2670291']
SELECT DISTINCT ?w WHERE { ?w property:P40 resource:Q2670291 . ?w rdf:type ontology:Q502895 }
Rukhsana Sultana
Rukhsana Sultana has that one as an offspring
Rukhsana Sultana
action filter_type
action find_reverse
entity Amrita Singh
relation child
type common name
[{'concept': 'common name'}, 'child', 'Amrita Singh']
SELECT DISTINCT ?w WHERE { ?w property:child resource:Amrita_Singh . ?w rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q7378860 Q3085073
P40
Q502895
USER
Is François Lafargue an offspring of that one ?
(Q7378860,P40,Q3085073)
action is_in
entity Q3085073
action find
entity Q7378860
relation P40
['Q7378860', 'P40', 'Q3085073']
ASK WHERE { resource:Q7378860 property:P40 resource:Q3085073 }
Rukhsana Sultana François Lafargue
action is_in
entity François Lafargue
action find
entity Rukhsana Sultana
relation child
['Rukhsana Sultana', 'child', 'François Lafargue']
ASK WHERE { resource:Rukhsana_Sultana property:child resource:François_Lafargue }
[]
common name
SYSTEM
NO
(Q7378860,P40,Q3085073)
action is_in
entity Q3085073
action find
entity Q7378860
relation P40
[ANSWER]
['Q7378860', 'P40', 'Q3085073']
ASK WHERE { resource:Q7378860 property:P40 resource:Q3085073 }
No
action is_in
entity François Lafargue
action find
entity Rukhsana Sultana
relation child
['Rukhsana Sultana', 'child', 'François Lafargue']
ASK WHERE { resource:Rukhsana_Sultana property:child resource:François_Lafargue }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7378860
P25
Q502895
USER
Which person has Rukhsana Sultana as a parent ?
action filter_type
action find_reverse
entity Q7378860
relation P25
type Q502895
SELECT DISTINCT ?a WHERE { ?a property:P25 resource:Q7378860 . ?a rdf:type ontology:Q502895 }
Rukhsana Sultana
action filter_type
action find_reverse
entity Rukhsana Sultana
relation mother
type common name
SELECT DISTINCT ?a WHERE { ?a property:mother resource:Rukhsana_Sultana . ?a rdf:type ontology:common_name }
[]
common name
Q2670291
SYSTEM
Amrita Singh
Q2670291
action filter_type
action find_reverse
entity Q7378860
relation P25
type Q502895
[ANSWER] has Rukhsana Sultana as a parent
SELECT DISTINCT ?a WHERE { ?a property:P25 resource:Q7378860 . ?a rdf:type ontology:Q502895 }
Amrita Singh
Amrita Singh has Rukhsana Sultana as a parent
Amrita Singh
action filter_type
action find_reverse
entity Rukhsana Sultana
relation mother
type common name
SELECT DISTINCT ?a WHERE { ?a property:mother resource:Rukhsana_Sultana . ?a rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2670291
P166
Q4220917
USER
Which film award was received by that person ?
(Q2670291,P166,c(Q4220917))
action filter_type
action find
entity Q2670291
relation P166
type Q4220917
['Q2670291', 'P166', {'concept': 'Q4220917'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q4220917 . resource:Q2670291 property:P166 ?s }
Amrita Singh
action filter_type
action find
entity Amrita Singh
relation award received
type film award
['Amrita Singh', 'award received', {'concept': 'film award'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:film_award . resource:Amrita_Singh property:award_received ?s }
[]
film award
Q388433
SYSTEM
Filmfare Award for Best Supporting Actress
Q388433
(Q2670291,P166,c(Q4220917))
action filter_type
action find
entity Q2670291
relation P166
type Q4220917
[ANSWER] was received by that person
['Q2670291', 'P166', {'concept': 'Q4220917'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q4220917 . resource:Q2670291 property:P166 ?s }
Filmfare Award for Best Supporting Actress
Filmfare Award for Best Supporting Actress was received by that person
Filmfare Award for Best Supporting Actress
action filter_type
action find
entity Amrita Singh
relation award received
type film award
['Amrita Singh', 'award received', {'concept': 'film award'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:film_award . resource:Amrita_Singh property:award_received ?s }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1027
Q48204 Q4220917
USER
How many voluntary associations confer atmost 1 film award ?
(c(Q4220917),P1027,c(Q48204))
action count
action atmost
action find_reverse_tuple_counts
relation P1027
type Q48204
type Q4220917
value 1
[{'concept': 'Q4220917'}, 'P1027', {'concept': 'Q48204'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?d ) AS ?t ) WHERE { ?d property:P1027 ?g . ?d rdf:type ontology:Q4220917 . ?g rdf:type ontology:Q48204 } GROUP BY ?g } . FILTER ( ?t <= 1 ) }
action count
action atmost
action find_reverse_tuple_counts
relation conferred by
type voluntary association
type film award
value 1
[{'concept': 'film award'}, 'conferred by', {'concept': 'voluntary association'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?d ) AS ?t ) WHERE { ?d property:conferred_by ?g . ?d rdf:type ontology:film_award . ?g rdf:type ontology:voluntary_association } GROUP BY ?g } . FILTER ( ?t <= 1 ) }
[]
voluntary association film award
SYSTEM
27
Q867447 Q7552419 Q746022 Q161806 Q3963829 Q1460885 Q465584 Q1284744 Q1347340 Q1468277 Q1230936 Q2867705 Q3445958 Q1621074 Q5417893 Q6843454 Q253075 Q1310653 Q433211 Q1503216 Q919105 Q1282089 Q14950045 Q467040 Q5029983 Q466021 Q941221
(c(Q4220917),P1027,c(Q48204))
action count
action atmost
action find_reverse_tuple_counts
relation P1027
type Q48204
type Q4220917
value 1
[ANSWER]
[{'concept': 'Q4220917'}, 'P1027', {'concept': 'Q48204'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?d ) AS ?t ) WHERE { ?d property:P1027 ?g . ?d rdf:type ontology:Q4220917 . ?g rdf:type ontology:Q48204 } GROUP BY ?g } . FILTER ( ?t <= 1 ) }
Linnean Society of London Society of Chemical Industry United Nations Correspondents Association Académie française Italian Physical Society Royal Society of Arts American Library Association Edinburgh Mathematical Society Hollywood Foreign Press Association Royal Society of Literature Geological Society of London Association francophone pour le savoir Royal Historical Society History of Science Society Society of Antiquaries of London World History Association Producers Guild of America Swedish Royal Academies American Political Science Association Geological Society of America British Ecological Society Econometric Society Chartered Institute of Library and Information Professionals American Statistical Association Canadian Federation for the Humanities and Social Sciences Society for Classical Studies Chemical Society
27
action count
action atmost
action find_reverse_tuple_counts
relation conferred by
type voluntary association
type film award
value 1
[{'concept': 'film award'}, 'conferred by', {'concept': 'voluntary association'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?d ) AS ?t ) WHERE { ?d property:conferred_by ?g . ?d rdf:type ontology:film_award . ?g rdf:type ontology:voluntary_association } GROUP BY ?g } . FILTER ( ?t <= 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q454364 Q184885
P26
Q502895
USER
Which people are the life partner of Kareena Kapoor or Tammy Faye Messner ?
OR((Q184885,P26,c(Q502895)), (Q454364,P26,c(Q502895)))
action filter_type
action union
action find
entity Q184885
relation P26
action find
entity Q454364
relation P26
type Q502895
{'OR': [['Q184885', 'P26', {'concept': 'Q502895'}], ['Q454364', 'P26', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q502895 . { VALUES ( ?f ) { ( resource:Q184885 ) ( resource:Q454364 ) } . ?f property:P26 ?y } }
Tammy Faye Messner Kareena Kapoor
action filter_type
action union
action find
entity Kareena Kapoor
relation spouse
action find
entity Tammy Faye Messner
relation spouse
type common name
{'OR': [['Kareena Kapoor', 'spouse', {'concept': 'common name'}], ['Tammy Faye Messner', 'spouse', {'concept': 'common name'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:common_name . { VALUES ( ?f ) { ( resource:Kareena_Kapoor ) ( resource:Tammy_Faye_Messner ) } . ?f property:spouse ?y } }
[]
common name
Q4355654 Q252290 Q7357529
SYSTEM
Jim Bakker, Saif Ali Khan, Roe Messner
Q4355654 Q252290 Q7357529
OR((Q184885,P26,c(Q502895)), (Q454364,P26,c(Q502895)))
action filter_type
action union
action find
entity Q184885
relation P26
action find
entity Q454364
relation P26
type Q502895
[ANSWERS] are the life partner of Kareena Kapoor or Tammy Faye Messner
{'OR': [['Q184885', 'P26', {'concept': 'Q502895'}], ['Q454364', 'P26', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q502895 . { VALUES ( ?f ) { ( resource:Q184885 ) ( resource:Q454364 ) } . ?f property:P26 ?y } }
Jim Bakker Saif Ali Khan Roe Messner
Jim Bakker, Saif Ali Khan and Roe Messner are the life partner of Kareena Kapoor or Tammy Faye Messner
Jim Bakker Saif Ali Khan Roe Messner
action filter_type
action union
action find
entity Kareena Kapoor
relation spouse
action find
entity Tammy Faye Messner
relation spouse
type common name
{'OR': [['Kareena Kapoor', 'spouse', {'concept': 'common name'}], ['Tammy Faye Messner', 'spouse', {'concept': 'common name'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:common_name . { VALUES ( ?f ) { ( resource:Kareena_Kapoor ) ( resource:Tammy_Faye_Messner ) } . ?f property:spouse ?y } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments can approximately 417 people perform with ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 417
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?s ) AS ?c ) WHERE { ?s property:P1303 ?p . ?p rdf:type ontology:Q34379 . ?s rdf:type ontology:Q502895 } GROUP BY ?p } . FILTER ( ?c = 417 ) }
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 417
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?s ) AS ?c ) WHERE { ?s property:instrument ?p . ?p rdf:type ontology:musical_instrument . ?s rdf:type ontology:common_name } GROUP BY ?p } . FILTER ( ?c = 417 ) }
[]
musical instrument common name
Q1178361 Q81982 Q1759986
SYSTEM
davul, harpsichord, Wurlitzer electric piano
Q80284 Q46185 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q8338 Q120585 Q713298 Q8371 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 417
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?s ) AS ?c ) WHERE { ?s property:P1303 ?p . ?p rdf:type ontology:Q34379 . ?s rdf:type ontology:Q502895 } GROUP BY ?p } . FILTER ( ?c = 417 ) }
viola bass guitar lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone spoon timpani Wurlitzer electric piano string instrument clavinet trumpet Tsuzumi geomungo cello cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
Which musical instruments can approximately 417 people perform with
davul harpsichord Wurlitzer electric piano
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 417
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?s ) AS ?c ) WHERE { ?s property:instrument ?p . ?p rdf:type ontology:musical_instrument . ?s rdf:type ontology:common_name } GROUP BY ?p } . FILTER ( ?c = 417 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q252290
P162
Q838948
USER
Which works of art have been developed by Saif Ali Khan ?
(c(Q838948),P162,Q252290)
action filter_type
action find_reverse
entity Q252290
relation P162
type Q838948
[{'concept': 'Q838948'}, 'P162', 'Q252290']
SELECT DISTINCT ?p WHERE { ?p property:P162 resource:Q252290 . ?p rdf:type ontology:Q838948 }
Saif Ali Khan
action filter_type
action find_reverse
entity Saif Ali Khan
relation producer
type work of art
[{'concept': 'work of art'}, 'producer', 'Saif Ali Khan']
SELECT DISTINCT ?p WHERE { ?p property:producer resource:Saif_Ali_Khan . ?p rdf:type ontology:work_of_art }
[]
work of art
Q3627717 Q1496227 Q2826737
SYSTEM
Cocktail, Love Aaj Kal, Agent Vinod
Q2826737 Q2820010 Q3627717 Q5574803 Q1496227
(c(Q838948),P162,Q252290)
action filter_type
action find_reverse
entity Q252290
relation P162
type Q838948
[ANSWERS] have been developed by Saif Ali Khan
[{'concept': 'Q838948'}, 'P162', 'Q252290']
SELECT DISTINCT ?p WHERE { ?p property:P162 resource:Q252290 . ?p rdf:type ontology:Q838948 }
Agent Vinod Aarakshan Cocktail Go Goa Gone Love Aaj Kal
Cocktail, Love Aaj Kal and Agent Vinod have been developed by Saif Ali Khan
Cocktail Love Aaj Kal Agent Vinod
action filter_type
action find_reverse
entity Saif Ali Khan
relation producer
type work of art
[{'concept': 'work of art'}, 'producer', 'Saif Ali Khan']
SELECT DISTINCT ?p WHERE { ?p property:producer resource:Saif_Ali_Khan . ?p rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q252290
P1038
Q502895
USER
Who is a kin of that one ?
(c(Q502895),P1038,Q3627717) (c(Q502895),P1038,Q1496227) (c(Q502895),P1038,Q2826737)
action filter_type
action find_reverse
entity Q252290
relation P1038
type Q502895
[{'concept': 'Q502895'}, 'P1038', 'Q3627717'] [{'concept': 'Q502895'}, 'P1038', 'Q1496227'] [{'concept': 'Q502895'}, 'P1038', 'Q2826737']
SELECT DISTINCT ?s WHERE { ?s property:P1038 resource:Q252290 . ?s rdf:type ontology:Q502895 }
Saif Ali Khan
action filter_type
action find_reverse
entity Saif Ali Khan
relation relative
type common name
[{'concept': 'common name'}, 'relative', 'Cocktail'] [{'concept': 'common name'}, 'relative', 'Love Aaj Kal'] [{'concept': 'common name'}, 'relative', 'Agent Vinod']
SELECT DISTINCT ?s WHERE { ?s property:relative resource:Saif_Ali_Khan . ?s rdf:type ontology:common_name }
[]
common name
Q19668673
SYSTEM
Saad Bin Jung
Q19668673
(c(Q502895),P1038,Q3627717) (c(Q502895),P1038,Q1496227) (c(Q502895),P1038,Q2826737)
action filter_type
action find_reverse
entity Q252290
relation P1038
type Q502895
A kin of that one is Bin [ANSWER]
[{'concept': 'Q502895'}, 'P1038', 'Q3627717'] [{'concept': 'Q502895'}, 'P1038', 'Q1496227'] [{'concept': 'Q502895'}, 'P1038', 'Q2826737']
SELECT DISTINCT ?s WHERE { ?s property:P1038 resource:Q252290 . ?s rdf:type ontology:Q502895 }
Saad Bin Jung
A kin of that one is Bin Saad Bin Jung
Saad Bin Jung
action filter_type
action find_reverse
entity Saif Ali Khan
relation relative
type common name
[{'concept': 'common name'}, 'relative', 'Cocktail'] [{'concept': 'common name'}, 'relative', 'Love Aaj Kal'] [{'concept': 'common name'}, 'relative', 'Agent Vinod']
SELECT DISTINCT ?s WHERE { ?s property:relative resource:Saif_Ali_Khan . ?s rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q252290
P69
Q3914
USER
What is the school where Saif Ali Khan was educated ?
(Q252290,P69,c(Q3914))
action filter_type
action find
entity Q252290
relation P69
type Q3914
['Q252290', 'P69', {'concept': 'Q3914'}]
SELECT DISTINCT ?q WHERE { resource:Q252290 property:P69 ?q . ?q rdf:type ontology:Q3914 }
Saif Ali Khan
action filter_type
action find
entity Saif Ali Khan
relation educated at
type school
['Saif Ali Khan', 'educated at', {'concept': 'school'}]
SELECT DISTINCT ?q WHERE { resource:Saif_Ali_Khan property:educated_at ?q . ?q rdf:type ontology:school }
[]
school
Q1059517
SYSTEM
Winchester College
Q1059517
(Q252290,P69,c(Q3914))
action filter_type
action find
entity Q252290
relation P69
type Q3914
The school Saif Ali Khan was educated is at [ANSWER]
['Q252290', 'P69', {'concept': 'Q3914'}]
SELECT DISTINCT ?q WHERE { resource:Q252290 property:P69 ?q . ?q rdf:type ontology:Q3914 }
Winchester College
The school Saif Ali Khan was educated is at Winchester College
Winchester College
action filter_type
action find
entity Saif Ali Khan
relation educated at
type school
['Saif Ali Khan', 'educated at', {'concept': 'school'}]
SELECT DISTINCT ?q WHERE { resource:Saif_Ali_Khan property:educated_at ?q . ?q rdf:type ontology:school }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1586895
Q3914
USER
And how about Harry Woolf, Baron Woolf?
(Q1586895,P69,c(Q3914))
action filter_type
action find
entity Q1586895
relation P69
type Q3914
['Q1586895', 'P69', {'concept': 'Q3914'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q3914 . resource:Q1586895 property:P69 ?s }
Harry Woolf, Baron Woolf
action filter_type
action find
entity Harry Woolf, Baron Woolf
relation educated at
type school
['Harry Woolf, Baron Woolf', 'educated at', {'concept': 'school'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:school . resource:Harry_Woolf,_Baron_Woolf property:educated_at ?s }
[]
school
Q5445986
SYSTEM
Fettes College
Q5445986
(Q1586895,P69,c(Q3914))
action filter_type
action find
entity Q1586895
relation P69
type Q3914
[ANSWER]
['Q1586895', 'P69', {'concept': 'Q3914'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q3914 . resource:Q1586895 property:P69 ?s }
Fettes College
Fettes College
action filter_type
action find
entity Harry Woolf, Baron Woolf
relation educated at
type school
['Harry Woolf, Baron Woolf', 'educated at', {'concept': 'school'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:school . resource:Harry_Woolf,_Baron_Woolf property:educated_at ?s }
[]