Simple Question (Direct)
Simple Question
Q4794652
P26
Q502895
USER
Who is married to Arne Ruste ?
(Q4794652,P26,c(Q502895))
action filter_type
action find
entity Q4794652
relation P26
type Q502895
['Q4794652', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q4794652 property:P26 ?i . ?i rdf:type ontology:Q502895 }
Arne Ruste
action filter_type
action find
entity Arne Ruste
relation spouse
type common name
['Arne Ruste', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Arne_Ruste property:spouse ?i . ?i rdf:type ontology:common_name }
[]
common name
Q8754476
SYSTEM
Anne Horn
Q8754476
(Q4794652,P26,c(Q502895))
action filter_type
action find
entity Q4794652
relation P26
type Q502895
[ANSWER] is married to Arne Ruste
['Q4794652', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q4794652 property:P26 ?i . ?i rdf:type ontology:Q502895 }
Anne Horn
Anne Horn is married to Arne Ruste
Anne Horn
action filter_type
action find
entity Arne Ruste
relation spouse
type common name
['Arne Ruste', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Arne_Ruste property:spouse ?i . ?i rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q8754476
P7
Q502895
USER
Who is the brother of that one ?
(Q8754476,P7,c(Q502895))
action filter_type
action find
entity Q8754476
relation P7
type Q502895
['Q8754476', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q8754476 property:P7 ?i . ?i rdf:type ontology:Q502895 }
Anne Horn
action filter_type
action find
entity Anne Horn
relation brother
type common name
['Anne Horn', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Anne_Horn property:brother ?i . ?i rdf:type ontology:common_name }
[]
common name
Q8753739
SYSTEM
Kjell Horn
Q8753739
(Q8754476,P7,c(Q502895))
action filter_type
action find
entity Q8754476
relation P7
type Q502895
The brother of that one is of [ANSWER]
['Q8754476', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q8754476 property:P7 ?i . ?i rdf:type ontology:Q502895 }
Kjell Horn
The brother of that one is of Kjell Horn
Kjell Horn
action filter_type
action find
entity Anne Horn
relation brother
type common name
['Anne Horn', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Anne_Horn property:brother ?i . ?i rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q386724
USER
Which works did atmost 2 people dub for ?
(c(Q386724),P725,c(Q502895))
action atmost
action find_tuple_counts
relation P725
type Q386724
type Q502895
value 2
[{'concept': 'Q386724'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { FILTER ( ?b <= 2 ) . { SELECT DISTINCT ?f ( COUNT ( ?l ) AS ?b ) WHERE { ?f property:P725 ?l . ?l rdf:type ontology:Q502895 . ?f rdf:type ontology:Q386724 } GROUP BY ?f } }
action atmost
action find_tuple_counts
relation voice actor
type work
type common name
value 2
[{'concept': 'work'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { FILTER ( ?b <= 2 ) . { SELECT DISTINCT ?f ( COUNT ( ?l ) AS ?b ) WHERE { ?f property:voice_actor ?l . ?l rdf:type ontology:common_name . ?f rdf:type ontology:work } GROUP BY ?f } }
[]
common name work
Q10864091
SYSTEM
Isshūkan Friends
Q10864091
(c(Q386724),P725,c(Q502895))
action atmost
action find_tuple_counts
relation P725
type Q386724
type Q502895
value 2
Atmost 2 people dubbed as [ANSWER]
[{'concept': 'Q386724'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { FILTER ( ?b <= 2 ) . { SELECT DISTINCT ?f ( COUNT ( ?l ) AS ?b ) WHERE { ?f property:P725 ?l . ?l rdf:type ontology:Q502895 . ?f rdf:type ontology:Q386724 } GROUP BY ?f } }
Isshūkan Friends
Atmost 2 people dubbed as Isshūkan Friends
Isshūkan Friends
action atmost
action find_tuple_counts
relation voice actor
type work
type common name
value 2
[{'concept': 'work'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { FILTER ( ?b <= 2 ) . { SELECT DISTINCT ?f ( COUNT ( ?l ) AS ?b ) WHERE { ?f property:voice_actor ?l . ?l rdf:type ontology:common_name . ?f rdf:type ontology:work } GROUP BY ?f } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3380522 Q8753739
P7
Q502895
USER
Which people had Kjell Horn or Kitiyakara Voralaksana as brother ?
OR((c(Q502895),P7,Q8753739), (c(Q502895),P7,Q3380522))
action filter_type
action union
action find_reverse
entity Q8753739
relation P7
action find_reverse
entity Q3380522
relation P7
type Q502895
{'OR': [[{'concept': 'Q502895'}, 'P7', 'Q8753739'], [{'concept': 'Q502895'}, 'P7', 'Q3380522']]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q502895 . { { ?k property:P7 resource:Q3380522 } UNION { ?k property:P7 resource:Q8753739 } } }
Kitiyakara Voralaksana Kjell Horn
action filter_type
action union
action find_reverse
entity Kjell Horn
relation brother
action find_reverse
entity Kitiyakara Voralaksana
relation brother
type common name
{'OR': [[{'concept': 'common name'}, 'brother', 'Kjell Horn'], [{'concept': 'common name'}, 'brother', 'Kitiyakara Voralaksana']]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:common_name . { { ?k property:brother resource:Kitiyakara_Voralaksana } UNION { ?k property:brother resource:Kjell_Horn } } }
[]
common name
Q161389 Q4886884 Q313124 Q461377 Q4854559 Q5071309 Q690708 Q4777913 Q6636215 Q4699958
SYSTEM
Some of them are Vajiravudh, Benbadhanabongse, Prajadhipok, Paribatra Sukhumbhand, Bandhavanna Varobhas, Chandra Saradavara, Mahidol Adulyadej, Anusara Siriprasadh, Vajirunhis, Ajrabarni Rajkanya
Q4877123 Q5272305 Q6581598 Q1247122 Q4699958 Q348448 Q4854559 Q4918278 Q8754476 Q4683015 Q2035565 Q538919 Q161389 Q5115910 Q4842936 Q313124 Q4777913 Q5071309 Q6636215 Q5086603 Q4901958 Q461377 Q4886884 Q690708 Q4684644 Q5115901 Q4664124
OR((c(Q502895),P7,Q8753739), (c(Q502895),P7,Q3380522))
action filter_type
action union
action find_reverse
entity Q8753739
relation P7
action find_reverse
entity Q3380522
relation P7
type Q502895
[ANSWERS] had Kjell Horn or Kitiyakara Voralaksana as brother
{'OR': [[{'concept': 'Q502895'}, 'P7', 'Q8753739'], [{'concept': 'Q502895'}, 'P7', 'Q3380522']]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q502895 . { { ?k property:P7 resource:Q3380522 } UNION { ?k property:P7 resource:Q8753739 } } }
Beatrice Bhadrayuvadi Dibyalangkarn Vudhijaya Chalermlabha Purachatra Jayakara Ajrabarni Rajkanya Yugala Dighambara Bandhavanna Varobhas Bismai Bimalasataya Anne Horn Adisaya Suriyabha Chakrabongse Bhuvanadh Valaya Alongkorn Vajiravudh Chudharatana Rajakumari Bahurada Manimaya Prajadhipok Anusara Siriprasadh Chandra Saradavara Vajirunhis Charoensri Chanamayu Bhongprabai Paribatra Sukhumbhand Benbadhanabongse Mahidol Adulyadej Adorndibyanibha Chudadhuj Dharadilok Abbhantripaja
Vajiravudh, Benbadhanabongse, Prajadhipok, Paribatra Sukhumbhand, Bandhavanna Varobhas, Chandra Saradavara, Mahidol Adulyadej, Anusara Siriprasadh, Vajirunhis and Ajrabarni Rajkanya had Kjell Horn or Kitiyakara Voralaksana as brother
Vajiravudh Benbadhanabongse Prajadhipok Paribatra Sukhumbhand Bandhavanna Varobhas Chandra Saradavara Mahidol Adulyadej Anusara Siriprasadh Vajirunhis Ajrabarni Rajkanya
action filter_type
action union
action find_reverse
entity Kjell Horn
relation brother
action find_reverse
entity Kitiyakara Voralaksana
relation brother
type common name
{'OR': [[{'concept': 'common name'}, 'brother', 'Kjell Horn'], [{'concept': 'common name'}, 'brother', 'Kitiyakara Voralaksana']]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:common_name . { { ?k property:brother resource:Kitiyakara_Voralaksana } UNION { ?k property:brother resource:Kjell_Horn } } }
[]