Simple Question (Direct)
Simple Question
Q453266
P26
Q502895
USER
Which person is married to Liu Sola ?
(Q453266,P26,c(Q502895))
action filter_type
action find
entity Q453266
relation P26
type Q502895
['Q453266', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { resource:Q453266 property:P26 ?v . ?v rdf:type ontology:Q502895 }
Liu Sola
action filter_type
action find
entity Liu Sola
relation spouse
type common name
['Liu Sola', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { resource:Liu_Sola property:spouse ?v . ?v rdf:type ontology:common_name }
[]
common name
Q4674228
SYSTEM
Ackbar Abbas
Q4674228
(Q453266,P26,c(Q502895))
action filter_type
action find
entity Q453266
relation P26
type Q502895
[ANSWER] is married to Liu Sola
['Q453266', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { resource:Q453266 property:P26 ?v . ?v rdf:type ontology:Q502895 }
Ackbar Abbas
Ackbar Abbas is married to Liu Sola
Ackbar Abbas
action filter_type
action find
entity Liu Sola
relation spouse
type common name
['Liu Sola', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { resource:Liu_Sola property:spouse ?v . ?v rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q453266
P86
Q838948
USER
Which works of art have Liu Sola as the melodist ?
(c(Q838948),P86,Q453266)
action filter_type
action find_reverse
entity Q453266
relation P86
type Q838948
[{'concept': 'Q838948'}, 'P86', 'Q453266']
SELECT DISTINCT ?d WHERE { ?d property:P86 resource:Q453266 . ?d rdf:type ontology:Q838948 }
Liu Sola
action filter_type
action find_reverse
entity Liu Sola
relation composer
type work of art
[{'concept': 'work of art'}, 'composer', 'Liu Sola']
SELECT DISTINCT ?d WHERE { ?d property:composer resource:Liu_Sola . ?d rdf:type ontology:work_of_art }
[]
work of art
Q7785170 Q6927162
SYSTEM
Thirteen Princess Trees, Moving the Mountain
Q7785170 Q6927162
(c(Q838948),P86,Q453266)
action filter_type
action find_reverse
entity Q453266
relation P86
type Q838948
Thirteen Princess Trees and moving the Mountain have Liu Sola as the melodist
[{'concept': 'Q838948'}, 'P86', 'Q453266']
SELECT DISTINCT ?d WHERE { ?d property:P86 resource:Q453266 . ?d rdf:type ontology:Q838948 }
Thirteen Princess Trees Moving the Mountain
Thirteen Princess Trees and moving the Mountain have Liu Sola as the melodist
Thirteen Princess Trees Moving the Mountain
action filter_type
action find_reverse
entity Liu Sola
relation composer
type work of art
[{'concept': 'work of art'}, 'composer', 'Liu Sola']
SELECT DISTINCT ?d WHERE { ?d property:composer resource:Liu_Sola . ?d rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q453266
P734
Q101352
USER
Who is associated with Liu Sola ?
(Q453266,P734,c(Q101352))
action filter_type
action find
entity Q453266
relation P734
type Q101352
['Q453266', 'P734', {'concept': 'Q101352'}]
SELECT DISTINCT ?e WHERE { resource:Q453266 property:P734 ?e . ?e rdf:type ontology:Q101352 }
Liu Sola
action filter_type
action find
entity Liu Sola
relation family name
type family name
['Liu Sola', 'family name', {'concept': 'family name'}]
SELECT DISTINCT ?e WHERE { resource:Liu_Sola property:family_name ?e . ?e rdf:type ontology:family_name }
[]
family name
Q804970
SYSTEM
Liu
Q804970
(Q453266,P734,c(Q101352))
action filter_type
action find
entity Q453266
relation P734
type Q101352
[ANSWER] is associated with [ANSWER] Sola
['Q453266', 'P734', {'concept': 'Q101352'}]
SELECT DISTINCT ?e WHERE { resource:Q453266 property:P734 ?e . ?e rdf:type ontology:Q101352 }
Liu
Liu is associated with Liu Sola
Liu
action filter_type
action find
entity Liu Sola
relation family name
type family name
['Liu Sola', 'family name', {'concept': 'family name'}]
SELECT DISTINCT ?e WHERE { resource:Liu_Sola property:family_name ?e . ?e rdf:type ontology:family_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4674228
P22
Q502895
USER
Who is the offspring of Ackbar Abbas ?
(c(Q502895),P22,Q4674228)
action filter_type
action find_reverse
entity Q4674228
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q4674228']
SELECT DISTINCT ?g WHERE { ?g property:P22 resource:Q4674228 . ?g rdf:type ontology:Q502895 }
Ackbar Abbas
action filter_type
action find_reverse
entity Ackbar Abbas
relation father
type common name
[{'concept': 'common name'}, 'father', 'Ackbar Abbas']
SELECT DISTINCT ?g WHERE { ?g property:father resource:Ackbar_Abbas . ?g rdf:type ontology:common_name }
[]
common name
Q7717943
SYSTEM
Ayesha Macpherson
Q7717943
(c(Q502895),P22,Q4674228)
action filter_type
action find_reverse
entity Q4674228
relation P22
type Q502895
The offspring of Ackbar Abbas is the [ANSWER]
[{'concept': 'Q502895'}, 'P22', 'Q4674228']
SELECT DISTINCT ?g WHERE { ?g property:P22 resource:Q4674228 . ?g rdf:type ontology:Q502895 }
Ayesha Macpherson
The offspring of Ackbar Abbas is the Ayesha Macpherson
Ayesha Macpherson
action filter_type
action find_reverse
entity Ackbar Abbas
relation father
type common name
[{'concept': 'common name'}, 'father', 'Ackbar Abbas']
SELECT DISTINCT ?g WHERE { ?g property:father resource:Ackbar_Abbas . ?g rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7717943
P40
Q502895
USER
Which people have that one as an offspring ?
(c(Q502895),P40,Q7717943)
action filter_type
action find_reverse
entity Q7717943
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q7717943']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . ?o property:P40 resource:Q7717943 }
Ayesha Macpherson
action filter_type
action find_reverse
entity Ayesha Macpherson
relation child
type common name
[{'concept': 'common name'}, 'child', 'Ayesha Macpherson']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . ?o property:child resource:Ayesha_Macpherson }
[]
common name
Q7717548 Q4674228
SYSTEM
Ophelia Cheung-Macpherson, Ackbar Abbas
Q7717548 Q4674228
(c(Q502895),P40,Q7717943)
action filter_type
action find_reverse
entity Q7717943
relation P40
type Q502895
[ANSWERS] have that one as an offspring
[{'concept': 'Q502895'}, 'P40', 'Q7717943']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . ?o property:P40 resource:Q7717943 }
Ophelia Cheung-Macpherson Ackbar Abbas
Ophelia Cheung-Macpherson and Ackbar Abbas have that one as an offspring
Ophelia Cheung-Macpherson Ackbar Abbas
action filter_type
action find_reverse
entity Ayesha Macpherson
relation child
type common name
[{'concept': 'common name'}, 'child', 'Ayesha Macpherson']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . ?o property:child resource:Ayesha_Macpherson }
[]
Clarification
Simple Question|Single Entity|Indirect
Q7717548
P7
Q502895
USER
Who is that one a sibling of ?
(Q7717548,P7,c(Q502895))
action filter_type
action find
entity Q7717548
relation P7
type Q502895
['Q7717548', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . resource:Q7717548 property:P7 ?e }
Ophelia Cheung-Macpherson
action filter_type
action find
entity Ophelia Cheung-Macpherson
relation brother
type common name
['Ophelia Cheung-Macpherson', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . resource:Ophelia_Cheung-Macpherson property:brother ?e }
[]
common name
Clarification for simple ques.
Q4674228
SYSTEM
Did you mean Ackbar Abbas ?
Q7717548 Q4674228
(Q7717548,P7,c(Q502895)) (Q4674228,P7,c(Q502895))
[ANSWER]
['Q7717548', 'P7', {'concept': 'Q502895'}] ['Q4674228', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . resource:Q7717548 property:P7 ?e }
Ophelia Cheung-Macpherson Ackbar Abbas
Did you mean Ackbar Abbas ?
Ackbar Abbas
['Ophelia Cheung-Macpherson', 'brother', {'concept': 'common name'}] ['Ackbar Abbas', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . resource:Ophelia_Cheung-Macpherson property:brother ?e }
[]
Simple Question (Coreferenced)
USER
No, I meant Ophelia Cheung-Macpherson. Could you tell me the answer for that?
(Q7717548,P7,c(Q502895))
Q7717548
['Q7717548', 'P7', {'concept': 'Q502895'}]
['Ophelia Cheung-Macpherson', 'brother', {'concept': 'common name'}]
[]
Q313596
SYSTEM
Leslie Cheung
Q313596
(Q7717548,P7,c(Q502895))
action filter_type
action find
entity Q7717548
relation P7
type Q502895
That one a sibling of is the [ANSWER]
['Q7717548', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . resource:Q7717548 property:P7 ?e }
Leslie Cheung
That one a sibling of is the Leslie Cheung
Leslie Cheung
action filter_type
action find
entity Ophelia Cheung-Macpherson
relation brother
type common name
['Ophelia Cheung-Macpherson', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . resource:Ophelia_Cheung-Macpherson property:brother ?e }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1441
Q838948 Q6619679 Q502895
USER
How many works of art contain approximately 9 fictional humanoids and people ?
(c(Q6619679)|c(Q502895),P1441,c(Q838948))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1441
type Q838948
type Q6619679
action find_reverse_tuple_counts
relation P1441
type Q838948
type Q502895
value 9
[[{'concept': 'Q6619679'}, {'concept': 'Q502895'}], 'P1441', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?g ) WHERE { FILTER ( ?r = 9 ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) ?o WHERE { VALUES ( ?z ) { ( ontology:Q502895 ) ( ontology:Q6619679 ) } . ?b rdf:type ?z } GROUP BY ?o } }
action count
action approx
action union
action find_reverse_tuple_counts
relation present in work
type work of art
type fictional humanoid
action find_reverse_tuple_counts
relation present in work
type work of art
type common name
value 9
[[{'concept': 'fictional humanoid'}, {'concept': 'common name'}], 'present in work', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?g ) WHERE { FILTER ( ?r = 9 ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) ?o WHERE { VALUES ( ?z ) { ( ontology:common_name ) ( ontology:fictional_humanoid ) } . ?b rdf:type ?z } GROUP BY ?o } }
[]
work of art fictional humanoid common name
SYSTEM
63
Q204398 Q309289 Q46717 Q388360 Q54274 Q102754 Q158759 Q26154237 Q332368 Q1765358 Q107894 Q64110 Q218458 Q2345 Q161087 Q17509388 Q23010088 Q24272881 Q320423 Q748030 Q106571 Q2363062 Q309366 Q334780 Q165847 Q650063 Q181540 Q107724 Q182218 Q19089 Q217020 Q180279 Q1198611 Q26833 Q106440 Q4941 Q169082 Q107761 Q207916 Q174385 Q23780734 Q14171368 Q272064 Q22000000 Q19481099 Q27204 Q6074 Q19032697 Q753298 Q504697 Q209538 Q275120 Q30931 Q15624215 Q591272 Q1201853 Q151904 Q23781155 Q192724 Q309086 Q183555 Q23780914 Q104123
(c(Q6619679)|c(Q502895),P1441,c(Q838948))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1441
type Q838948
type Q6619679
action find_reverse_tuple_counts
relation P1441
type Q838948
type Q502895
value 9
[ANSWER]
[[{'concept': 'Q6619679'}, {'concept': 'Q502895'}], 'P1441', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?g ) WHERE { FILTER ( ?r = 9 ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) ?o WHERE { VALUES ( ?z ) { ( ontology:Q502895 ) ( ontology:Q6619679 ) } . ?b rdf:type ?z } GROUP BY ?o } }
Octopussy The Man with the Golden Gun Pirates of the Caribbean: The Curse of the Black Pearl National Treasure: Book of Secrets Pirates of the Caribbean: At World's End Dr. No Unknown Descendants 2 A View to a Kill Captain America: The Winter Soldier On Her Majesty's Secret Service 20,000 Leagues Under the Sea 25th Hour 12 Angry Men Pirates of the Caribbean: Dead Man's Chest ABCD: Any Body Can Dance 2 Spider-Man: Homecoming Mary Poppins Returns The Spy Who Loved Me The 13th Warrior From Russia with Love 3 Ninjas National Treasure Moonraker 102 Dalmatians The Seagull Quantum of Solace Thunderball The Avengers GoldenEye Thor Never Say Never Again The Absent-Minded Professor Othello Goldfinger Skyfall 10 Things I Hate About You You Only Live Twice Tomorrow Never Dies Alice in Wonderland Black Panther Avengers: Age of Ultron The Living Daylights Circus of Love Jason Bourne Live and Let Die Star Wars: The Force Awakens Peter Pan, or The Boy Who Wouldn't Grow Up Uncle Vanya WarGames Iron Man 3 Captain America: The First Avenger Die Another Day Lucy Casino Royale Thor: The Dark World Casino Royale Untitled Avengers Movie Iron Man Licence to Kill Pirates of the Caribbean: On Stranger Tides Avengers: Infinity War Pulp Fiction
63
action count
action approx
action union
action find_reverse_tuple_counts
relation present in work
type work of art
type fictional humanoid
action find_reverse_tuple_counts
relation present in work
type work of art
type common name
value 9
[[{'concept': 'fictional humanoid'}, {'concept': 'common name'}], 'present in work', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?g ) WHERE { FILTER ( ?r = 9 ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) ?o WHERE { VALUES ( ?z ) { ( ontology:common_name ) ( ontology:fictional_humanoid ) } . ?b rdf:type ?z } GROUP BY ?o } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q109067 Q6927162
P27 P495
Q15617994
USER
Which administrative territories are the countries of origin of Moving the Mountain or are the native countriesof Viktor Dyk ?
OR((Q6927162,P495,c(Q15617994)), (Q109067,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q6927162
relation P495
action find
entity Q109067
relation P27
type Q15617994
{'OR': [['Q6927162', 'P495', {'concept': 'Q15617994'}], ['Q109067', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q15617994 . { { resource:Q6927162 property:P495 ?o } UNION { resource:Q109067 property:P27 ?o } } }
Viktor Dyk Moving the Mountain
action filter_type
action union
action find
entity Moving the Mountain
relation country of origin
action find
entity Viktor Dyk
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Moving the Mountain', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Viktor Dyk', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Moving_the_Mountain property:country_of_origin ?o } UNION { resource:Viktor_Dyk property:country_of_citizenship ?o } } }
[]
designation for an administrative territorial entity
Q213 Q145
SYSTEM
Czech Republic, United Kingdom
Q213 Q145
OR((Q6927162,P495,c(Q15617994)), (Q109067,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q6927162
relation P495
action find
entity Q109067
relation P27
type Q15617994
[ANSWERS] are the countries of origin of Moving the Mountain or are the native countriesof Viktor Dyk
{'OR': [['Q6927162', 'P495', {'concept': 'Q15617994'}], ['Q109067', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q15617994 . { { resource:Q6927162 property:P495 ?o } UNION { resource:Q109067 property:P27 ?o } } }
Czech Republic United Kingdom
Czech Republic and United Kingdom are the countries of origin of Moving the Mountain or are the native countriesof Viktor Dyk
Czech Republic United Kingdom
action filter_type
action union
action find
entity Moving the Mountain
relation country of origin
action find
entity Viktor Dyk
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Moving the Mountain', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Viktor Dyk', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Moving_the_Mountain property:country_of_origin ?o } UNION { resource:Viktor_Dyk property:country_of_citizenship ?o } } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q9183956 Q4674228
P26
Q502895
USER
Which people are the spouses of Ackbar Abbas or Masako Mori ?
OR((Q4674228,P26,c(Q502895)), (Q9183956,P26,c(Q502895)))
action filter_type
action union
action find
entity Q4674228
relation P26
action find
entity Q9183956
relation P26
type Q502895
{'OR': [['Q4674228', 'P26', {'concept': 'Q502895'}], ['Q9183956', 'P26', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?x ) { ( resource:Q4674228 ) ( resource:Q9183956 ) } . ?x property:P26 ?k } . ?k rdf:type ontology:Q502895 }
Masako Mori Ackbar Abbas
action filter_type
action union
action find
entity Ackbar Abbas
relation spouse
action find
entity Masako Mori
relation spouse
type common name
{'OR': [['Ackbar Abbas', 'spouse', {'concept': 'common name'}], ['Masako Mori', 'spouse', {'concept': 'common name'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?x ) { ( resource:Ackbar_Abbas ) ( resource:Masako_Mori ) } . ?x property:spouse ?k } . ?k rdf:type ontology:common_name }
[]
common name
Q1075132 Q453266 Q7717548
SYSTEM
Shinichi Mori, Liu Sola, Ophelia Cheung-Macpherson
Q1075132 Q453266 Q7717548
OR((Q4674228,P26,c(Q502895)), (Q9183956,P26,c(Q502895)))
action filter_type
action union
action find
entity Q4674228
relation P26
action find
entity Q9183956
relation P26
type Q502895
[ANSWERS] are the spouses of Ackbar Abbas or Masako Mori
{'OR': [['Q4674228', 'P26', {'concept': 'Q502895'}], ['Q9183956', 'P26', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?x ) { ( resource:Q4674228 ) ( resource:Q9183956 ) } . ?x property:P26 ?k } . ?k rdf:type ontology:Q502895 }
Shinichi Mori Liu Sola Ophelia Cheung-Macpherson
Shinichi Mori, Liu Sola and Ophelia Cheung-Macpherson are the spouses of Ackbar Abbas or Masako Mori
Shinichi Mori Liu Sola Ophelia Cheung-Macpherson
action filter_type
action union
action find
entity Ackbar Abbas
relation spouse
action find
entity Masako Mori
relation spouse
type common name
{'OR': [['Ackbar Abbas', 'spouse', {'concept': 'common name'}], ['Masako Mori', 'spouse', {'concept': 'common name'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?x ) { ( resource:Ackbar_Abbas ) ( resource:Masako_Mori ) } . ?x property:spouse ?k } . ?k rdf:type ontology:common_name }
[]