Simple Question (Direct)
Simple Question
Q7091012
P57
Q502895
USER
Who was the director of On His Majesty's Secret Service ?
(Q7091012,P57,c(Q502895))
action filter_type
action find
entity Q7091012
relation P57
type Q502895
['Q7091012', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q7091012 property:P57 ?r . ?r rdf:type ontology:Q502895 }
On His Majesty's Secret Service
action filter_type
action find
entity On His Majesty's Secret Service
relation director
type common name
["On His Majesty's Secret Service", 'director', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:On_His_Majesty's_Secret_Service property:director ?r . ?r rdf:type ontology:common_name }
[]
common name
Q707336
SYSTEM
Wong Jing
Q707336
(Q7091012,P57,c(Q502895))
action filter_type
action find
entity Q7091012
relation P57
type Q502895
The director of On His Majesty's Secret Service was Minister [ANSWER]
['Q7091012', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q7091012 property:P57 ?r . ?r rdf:type ontology:Q502895 }
Wong Jing
The director of On His Majesty's Secret Service was Minister Wong Jing
Wong Jing
action filter_type
action find
entity On His Majesty's Secret Service
relation director
type common name
["On His Majesty's Secret Service", 'director', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:On_His_Majesty's_Secret_Service property:director ?r . ?r rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q707336
P27
Q15617994
USER
Which administrative territory is the country of citizenship of that person ?
(Q707336,P27,c(Q15617994))
action filter_type
action find
entity Q707336
relation P27
type Q15617994
['Q707336', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q707336 property:P27 ?x . ?x rdf:type ontology:Q15617994 }
Wong Jing
action filter_type
action find
entity Wong Jing
relation country of citizenship
type designation for an administrative territorial entity
['Wong Jing', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Wong_Jing property:country_of_citizenship ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q148
SYSTEM
People's Republic of China
Q148
(Q707336,P27,c(Q15617994))
action filter_type
action find
entity Q707336
relation P27
type Q15617994
The [ANSWER] is the country of citizenship of that person
['Q707336', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q707336 property:P27 ?x . ?x rdf:type ontology:Q15617994 }
People's Republic of China
The People's Republic of China is the country of citizenship of that person
People's Republic of China
action filter_type
action find
entity Wong Jing
relation country of citizenship
type designation for an administrative territorial entity
['Wong Jing', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Wong_Jing property:country_of_citizenship ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q707336
P162
Q838948
USER
Which works of art have been produced by that person ?
(c(Q838948),P162,Q148)
action filter_type
action find_reverse
entity Q707336
relation P162
type Q838948
[{'concept': 'Q838948'}, 'P162', 'Q148']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q838948 . ?o property:P162 resource:Q707336 }
Wong Jing
action filter_type
action find_reverse
entity Wong Jing
relation producer
type work of art
[{'concept': 'work of art'}, 'producer', "People's Republic of China"]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:work_of_art . ?o property:producer resource:Wong_Jing }
[]
work of art
Q5976692 Q1526706 Q10881514
SYSTEM
I Corrupt All Cops, Wo Hu, Lee Rock
Q3073055 Q1526706 Q4655867 Q8058375 Q1319763 Q14657928 Q1081392 Q6444466 Q7771997 Q13653730 Q5894308 Q7456262 Q8058511 Q5682684 Q11074963 Q11091716 Q6960504 Q846563 Q10881514 Q10881515 Q706151 Q2975195 Q5976692 Q6945786 Q4911765 Q1279985 Q914994 Q844382 Q6690863 Q2941094 Q2941095 Q3071625 Q56862 Q7458470 Q7293919 Q7774258 Q2837459 Q6517812 Q1021977 Q5187382 Q3485767 Q16078804 Q996247
(c(Q838948),P162,Q148)
action filter_type
action find_reverse
entity Q707336
relation P162
type Q838948
I corrupt All Cops, Wo Hu and Lee Rock have been produced by that person
[{'concept': 'Q838948'}, 'P162', 'Q148']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q838948 . ?o property:P162 resource:Q707336 }
Fist Power Wo Hu A Chinese Torture Chamber Story Young Policemen in Love The Seventh Curse The Romancing Star III Sex and Zen II Kung Fu Mahjong The Vampire Who Admires Me No Risk, No Gain Hong Kong Bronx Set Up Young and Dangerous: The Prequel Haunted Mansion My Wife Is a Gambling Maestro Perfect Match Naked Soldier Forbidden City Cop Lee Rock Lee Rock II The Duel Naked Weapon I Corrupt All Cops My Kung-Fu Sweetheart God of Gamblers 3: The Early Stage Ebola Syndrome My Father Is a Hero High Risk Love Is the Only Answer Casino Tycoon Casino Tycoon 2 Fight Back to School To Live and Die in Tsimshatsui Sex and Zen III Raped by an Angel 2: The Uniform Fan The Wesley's Mysterious File All About Love Legend of the Liquid Sword Naked Killer Crocodile Hunter Sixty The Saint of Gamblers Young and Dangerous
I corrupt All Cops, Wo Hu and Lee Rock have been produced by that person
I Corrupt All Cops Wo Hu Lee Rock
action filter_type
action find_reverse
entity Wong Jing
relation producer
type work of art
[{'concept': 'work of art'}, 'producer', "People's Republic of China"]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:work_of_art . ?o property:producer resource:Wong_Jing }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q130232 Q707336
P136 P57
Q838948
USER
Which works of art are Wong Jing a director of and have drama film as genre ?
AND((c(Q838948),P57,Q707336), (c(Q838948),P136,Q130232))
action filter_type
action intersection
action find_reverse
entity Q707336
relation P57
action find_reverse
entity Q130232
relation P136
type Q838948
{'AND': [[{'concept': 'Q838948'}, 'P57', 'Q707336'], [{'concept': 'Q838948'}, 'P136', 'Q130232']]}
SELECT DISTINCT ?y WHERE { ?y property:P57 resource:Q707336 . ?y property:P136 resource:Q130232 . ?y rdf:type ontology:Q838948 }
drama film Wong Jing
action filter_type
action intersection
action find_reverse
entity Wong Jing
relation director
action find_reverse
entity drama film
relation genre
type work of art
{'AND': [[{'concept': 'work of art'}, 'director', 'Wong Jing'], [{'concept': 'work of art'}, 'genre', 'drama film']]}
SELECT DISTINCT ?y WHERE { ?y property:director resource:Wong_Jing . ?y property:genre resource:drama_film . ?y rdf:type ontology:work_of_art }
[]
work of art
Q2782486 Q1087324 Q11084109 Q5976692
SYSTEM
The Last Tycoon, A True Mob Story, Moving Targets, I Corrupt All Cops
Q2782486 Q1087324 Q11084109 Q5976692
AND((c(Q838948),P57,Q707336), (c(Q838948),P136,Q130232))
action filter_type
action intersection
action find_reverse
entity Q707336
relation P57
action find_reverse
entity Q130232
relation P136
type Q838948
[ANSWERS]
{'AND': [[{'concept': 'Q838948'}, 'P57', 'Q707336'], [{'concept': 'Q838948'}, 'P136', 'Q130232']]}
SELECT DISTINCT ?y WHERE { ?y property:P57 resource:Q707336 . ?y property:P136 resource:Q130232 . ?y rdf:type ontology:Q838948 }
The Last Tycoon A True Mob Story Moving Targets I Corrupt All Cops
A True Mob Story, moving Targets and I Corrupt All Cops are Wong Jing a director of and have drama film as genre
The Last Tycoon A True Mob Story Moving Targets I Corrupt All Cops
action filter_type
action intersection
action find_reverse
entity Wong Jing
relation director
action find_reverse
entity drama film
relation genre
type work of art
{'AND': [[{'concept': 'work of art'}, 'director', 'Wong Jing'], [{'concept': 'work of art'}, 'genre', 'drama film']]}
SELECT DISTINCT ?y WHERE { ?y property:director resource:Wong_Jing . ?y property:genre resource:drama_film . ?y rdf:type ontology:work_of_art }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q860626 Q707336
P136 P57
Q838948
USER
Which works of art have Wong Jing as their director and as romantic comedy as their class ?
AND((c(Q838948),P57,Q707336), (c(Q838948),P136,Q860626))
action filter_type
action intersection
action find_reverse
entity Q707336
relation P57
action find_reverse
entity Q860626
relation P136
type Q838948
{'AND': [[{'concept': 'Q838948'}, 'P57', 'Q707336'], [{'concept': 'Q838948'}, 'P136', 'Q860626']]}
SELECT DISTINCT ?z WHERE { ?z property:P57 resource:Q707336 . ?z property:P136 resource:Q860626 . ?z rdf:type ontology:Q838948 }
romantic comedy Wong Jing
action filter_type
action intersection
action find_reverse
entity Wong Jing
relation director
action find_reverse
entity romantic comedy
relation genre
type work of art
{'AND': [[{'concept': 'work of art'}, 'director', 'Wong Jing'], [{'concept': 'work of art'}, 'genre', 'romantic comedy']]}
SELECT DISTINCT ?z WHERE { ?z property:director resource:Wong_Jing . ?z property:genre resource:romantic_comedy . ?z rdf:type ontology:work_of_art }
[]
work of art
Q4185556 Q6690793 Q13522836 Q11074963 Q14657928 Q13522772 Q11132990 Q10944005 Q14510200 Q11179648
SYSTEM
Some of them are Men Suddenly in Love, Love Is a Many Stupid Thing, Mr. and Mrs. Gambler, My Wife Is a Gambling Maestro, The Romancing Star III, Dances with Dragon, How to Pick Girls Up!, Marry a Perfect Man, The Romancing Star II, Prince Charming
Q14500327 Q4185556 Q10944005 Q11132990 Q13522836 Q14657928 Q14510200 Q6690793 Q11074963 Q13522772 Q11179648
AND((c(Q838948),P57,Q707336), (c(Q838948),P136,Q860626))
action filter_type
action intersection
action find_reverse
entity Q707336
relation P57
action find_reverse
entity Q860626
relation P136
type Q838948
[ANSWERS]
{'AND': [[{'concept': 'Q838948'}, 'P57', 'Q707336'], [{'concept': 'Q838948'}, 'P136', 'Q860626']]}
SELECT DISTINCT ?z WHERE { ?z property:P57 resource:Q707336 . ?z property:P136 resource:Q860626 . ?z rdf:type ontology:Q838948 }
The Romancing Star Men Suddenly in Love Marry a Perfect Man How to Pick Girls Up! Mr. and Mrs. Gambler The Romancing Star III The Romancing Star II Love Is a Many Stupid Thing My Wife Is a Gambling Maestro Dances with Dragon Prince Charming
Marry a Perfect Man, The Romancing Star II and Prince Charming have Wong Jing as their director and as romantic comedy as their class
Men Suddenly in Love Love Is a Many Stupid Thing Mr. and Mrs. Gambler My Wife Is a Gambling Maestro The Romancing Star III Dances with Dragon How to Pick Girls Up! Marry a Perfect Man The Romancing Star II Prince Charming
action filter_type
action intersection
action find_reverse
entity Wong Jing
relation director
action find_reverse
entity romantic comedy
relation genre
type work of art
{'AND': [[{'concept': 'work of art'}, 'director', 'Wong Jing'], [{'concept': 'work of art'}, 'genre', 'romantic comedy']]}
SELECT DISTINCT ?z WHERE { ?z property:director resource:Wong_Jing . ?z property:genre resource:romantic_comedy . ?z rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q4185556 Q6690793 Q13522836 Q11074963 Q14657928 Q13522772 Q11132990 Q10944005 Q14510200 Q11179648
P57
Q502895
USER
Who were Men Suddenly in Love, Love Is a Many Stupid Thing, Mr. and Mrs. Gambler, My Wife Is a Gambling Maestro, The Romancing Star III, Dances with Dragon, How to Pick Girls Up!, Marry a Perfect Man, The Romancing Star II and Prince Charming directed by ?
(Q4185556,P57,c(Q502895)) (Q6690793,P57,c(Q502895)) (Q13522836,P57,c(Q502895)) (Q11074963,P57,c(Q502895)) (Q14657928,P57,c(Q502895)) (Q13522772,P57,c(Q502895)) (Q11132990,P57,c(Q502895)) (Q10944005,P57,c(Q502895)) (Q14510200,P57,c(Q502895)) (Q11179648,P57,c(Q502895))
action union
action filter_type
action find
entity Q4185556
relation P57
type Q502895
action filter_type
action find
entity Q6690793
relation P57
type Q502895
action filter_type
action find
entity Q13522836
relation P57
type Q502895
action filter_type
action find
entity Q11074963
relation P57
type Q502895
action filter_type
action find
entity Q14657928
relation P57
type Q502895
action filter_type
action find
entity Q13522772
relation P57
type Q502895
action filter_type
action find
entity Q11132990
relation P57
type Q502895
action filter_type
action find
entity Q10944005
relation P57
type Q502895
action filter_type
action find
entity Q14510200
relation P57
type Q502895
action filter_type
action find
entity Q11179648
relation P57
type Q502895
['Q4185556', 'P57', {'concept': 'Q502895'}] ['Q6690793', 'P57', {'concept': 'Q502895'}] ['Q13522836', 'P57', {'concept': 'Q502895'}] ['Q11074963', 'P57', {'concept': 'Q502895'}] ['Q14657928', 'P57', {'concept': 'Q502895'}] ['Q13522772', 'P57', {'concept': 'Q502895'}] ['Q11132990', 'P57', {'concept': 'Q502895'}] ['Q10944005', 'P57', {'concept': 'Q502895'}] ['Q14510200', 'P57', {'concept': 'Q502895'}] ['Q11179648', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { ?e property:P57 ?t . VALUES ( ?e ) { ( resource:Q4185556 ) ( resource:Q6690793 ) } }
Men Suddenly in Love Love Is a Many Stupid Thing Mr. and Mrs. Gambler My Wife Is a Gambling Maestro The Romancing Star III Dances with Dragon How to Pick Girls Up! Marry a Perfect Man The Romancing Star II Prince Charming
action union
action filter_type
action find
entity Men Suddenly in Love
relation director
type common name
action filter_type
action find
entity Love Is a Many Stupid Thing
relation director
type common name
action filter_type
action find
entity Mr. and Mrs. Gambler
relation director
type common name
action filter_type
action find
entity My Wife Is a Gambling Maestro
relation director
type common name
action filter_type
action find
entity The Romancing Star III
relation director
type common name
action filter_type
action find
entity Dances with Dragon
relation director
type common name
action filter_type
action find
entity How to Pick Girls Up!
relation director
type common name
action filter_type
action find
entity Marry a Perfect Man
relation director
type common name
action filter_type
action find
entity The Romancing Star II
relation director
type common name
action filter_type
action find
entity Prince Charming
relation director
type common name
['Men Suddenly in Love', 'director', {'concept': 'common name'}] ['Love Is a Many Stupid Thing', 'director', {'concept': 'common name'}] ['Mr. and Mrs. Gambler', 'director', {'concept': 'common name'}] ['My Wife Is a Gambling Maestro', 'director', {'concept': 'common name'}] ['The Romancing Star III', 'director', {'concept': 'common name'}] ['Dances with Dragon', 'director', {'concept': 'common name'}] ['How to Pick Girls Up!', 'director', {'concept': 'common name'}] ['Marry a Perfect Man', 'director', {'concept': 'common name'}] ['The Romancing Star II', 'director', {'concept': 'common name'}] ['Prince Charming', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { ?e property:director ?t . VALUES ( ?e ) { ( resource:Men_Suddenly_in_Love ) ( resource:Love_Is_a_Many_Stupid_Thing ) } }
[]
common name
Q707336 Q707336 Q707336
SYSTEM
Wong Jing
Q707336 Q707336 Q707336 Q707336 Q707336 Q707336 Q707336 Q707336 Q707336 Q707336
(Q4185556,P57,c(Q502895)) (Q6690793,P57,c(Q502895)) (Q13522836,P57,c(Q502895)) (Q11074963,P57,c(Q502895)) (Q14657928,P57,c(Q502895)) (Q13522772,P57,c(Q502895)) (Q11132990,P57,c(Q502895)) (Q10944005,P57,c(Q502895)) (Q14510200,P57,c(Q502895)) (Q11179648,P57,c(Q502895))
action union
action filter_type
action find
entity Q4185556
relation P57
type Q502895
action filter_type
action find
entity Q6690793
relation P57
type Q502895
action filter_type
action find
entity Q13522836
relation P57
type Q502895
action filter_type
action find
entity Q11074963
relation P57
type Q502895
action filter_type
action find
entity Q14657928
relation P57
type Q502895
action filter_type
action find
entity Q13522772
relation P57
type Q502895
action filter_type
action find
entity Q11132990
relation P57
type Q502895
action filter_type
action find
entity Q10944005
relation P57
type Q502895
action filter_type
action find
entity Q14510200
relation P57
type Q502895
action filter_type
action find
entity Q11179648
relation P57
type Q502895
[ANSWER], [ANSWER] and [ANSWER] were Men Suddenly in Love, Love Is a Many Stupid Thing, Mr. and Mrs. Gambler, My Wife Is a Gambling Maestro, The Romancing Star III, Dances with Dragon, How to pick Girls Up!, Marry a Perfect Man, The Romancing Star II and Prince Charming directed by
['Q4185556', 'P57', {'concept': 'Q502895'}] ['Q6690793', 'P57', {'concept': 'Q502895'}] ['Q13522836', 'P57', {'concept': 'Q502895'}] ['Q11074963', 'P57', {'concept': 'Q502895'}] ['Q14657928', 'P57', {'concept': 'Q502895'}] ['Q13522772', 'P57', {'concept': 'Q502895'}] ['Q11132990', 'P57', {'concept': 'Q502895'}] ['Q10944005', 'P57', {'concept': 'Q502895'}] ['Q14510200', 'P57', {'concept': 'Q502895'}] ['Q11179648', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { ?e property:P57 ?t . VALUES ( ?e ) { ( resource:Q4185556 ) ( resource:Q6690793 ) } }
Wong Jing Wong Jing Wong Jing Wong Jing Wong Jing Wong Jing Wong Jing Wong Jing Wong Jing Wong Jing
Wong Jing, Wong Jing and Wong Jing were Men Suddenly in Love, Love Is a Many Stupid Thing, Mr. and Mrs. Gambler, My Wife Is a Gambling Maestro, The Romancing Star III, Dances with Dragon, How to pick Girls Up!, Marry a Perfect Man, The Romancing Star II and Prince Charming directed by
Wong Jing Wong Jing Wong Jing
action union
action filter_type
action find
entity Men Suddenly in Love
relation director
type common name
action filter_type
action find
entity Love Is a Many Stupid Thing
relation director
type common name
action filter_type
action find
entity Mr. and Mrs. Gambler
relation director
type common name
action filter_type
action find
entity My Wife Is a Gambling Maestro
relation director
type common name
action filter_type
action find
entity The Romancing Star III
relation director
type common name
action filter_type
action find
entity Dances with Dragon
relation director
type common name
action filter_type
action find
entity How to Pick Girls Up!
relation director
type common name
action filter_type
action find
entity Marry a Perfect Man
relation director
type common name
action filter_type
action find
entity The Romancing Star II
relation director
type common name
action filter_type
action find
entity Prince Charming
relation director
type common name
['Men Suddenly in Love', 'director', {'concept': 'common name'}] ['Love Is a Many Stupid Thing', 'director', {'concept': 'common name'}] ['Mr. and Mrs. Gambler', 'director', {'concept': 'common name'}] ['My Wife Is a Gambling Maestro', 'director', {'concept': 'common name'}] ['The Romancing Star III', 'director', {'concept': 'common name'}] ['Dances with Dragon', 'director', {'concept': 'common name'}] ['How to Pick Girls Up!', 'director', {'concept': 'common name'}] ['Marry a Perfect Man', 'director', {'concept': 'common name'}] ['The Romancing Star II', 'director', {'concept': 'common name'}] ['Prince Charming', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { ?e property:director ?t . VALUES ( ?e ) { ( resource:Men_Suddenly_in_Love ) ( resource:Love_Is_a_Many_Stupid_Thing ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q707336
P22
Q502895
USER
Who was the dad of Wong Jing ?
(Q707336,P22,c(Q502895))
action filter_type
action find
entity Q707336
relation P22
type Q502895
['Q707336', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q707336 property:P22 ?p . ?p rdf:type ontology:Q502895 }
Wong Jing
action filter_type
action find
entity Wong Jing
relation father
type common name
['Wong Jing', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:Wong_Jing property:father ?p . ?p rdf:type ontology:common_name }
[]
common name
Q716013
SYSTEM
Wong Tin-lam
Q716013
(Q707336,P22,c(Q502895))
action filter_type
action find
entity Q707336
relation P22
type Q502895
The dad of Wong Jing was named [ANSWER]
['Q707336', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q707336 property:P22 ?p . ?p rdf:type ontology:Q502895 }
Wong Tin-lam
The dad of Wong Jing was named Wong Tin-lam
Wong Tin-lam
action filter_type
action find
entity Wong Jing
relation father
type common name
['Wong Jing', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:Wong_Jing property:father ?p . ?p rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6732147
Q502895
USER
And what about Magnus Linklater?
(Q6732147,P22,c(Q502895))
action filter_type
action find
entity Q6732147
relation P22
type Q502895
['Q6732147', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q6732147 property:P22 ?r . ?r rdf:type ontology:Q502895 }
Magnus Linklater
action filter_type
action find
entity Magnus Linklater
relation father
type common name
['Magnus Linklater', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Magnus_Linklater property:father ?r . ?r rdf:type ontology:common_name }
[]
common name
Q919835
SYSTEM
Eric Linklater
Q919835
(Q6732147,P22,c(Q502895))
action filter_type
action find
entity Q6732147
relation P22
type Q502895
[ANSWER]
['Q6732147', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q6732147 property:P22 ?r . ?r rdf:type ontology:Q502895 }
Eric Linklater
Eric Linklater
action filter_type
action find
entity Magnus Linklater
relation father
type common name
['Magnus Linklater', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Magnus_Linklater property:father ?r . ?r rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q15416
USER
Which television programs did exactly 5 people dub for ?
(c(Q15416),P725,c(Q502895))
action equal
action find_tuple_counts
relation P725
type Q15416
type Q502895
value 5
[{'concept': 'Q15416'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?o ) AS ?l ) WHERE { ?x property:P725 ?o . ?x rdf:type ontology:Q15416 . ?o rdf:type ontology:Q502895 } GROUP BY ?x } . FILTER ( ?l = 5 ) }
action equal
action find_tuple_counts
relation voice actor
type television program
type common name
value 5
[{'concept': 'television program'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?o ) AS ?l ) WHERE { ?x property:voice_actor ?o . ?x rdf:type ontology:television_program . ?o rdf:type ontology:common_name } GROUP BY ?x } . FILTER ( ?l = 5 ) }
[]
common name television program
Q689114 Q18579178 Q331031
SYSTEM
Digimon Adventure, Kabaneri of the Iron Fortress, Dora the Explorer
Q689114 Q18579178 Q20899576 Q1143800 Q331031
(c(Q15416),P725,c(Q502895))
action equal
action find_tuple_counts
relation P725
type Q15416
type Q502895
value 5
Exactly 5 people dubbed the [ANSWERS]
[{'concept': 'Q15416'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?o ) AS ?l ) WHERE { ?x property:P725 ?o . ?x rdf:type ontology:Q15416 . ?o rdf:type ontology:Q502895 } GROUP BY ?x } . FILTER ( ?l = 5 ) }
Digimon Adventure Kabaneri of the Iron Fortress Shimmer and Shine Postman Pat Dora the Explorer
Exactly 5 people dubbed the Digimon Adventure, Kabaneri of the Iron Fortress and Dora the Explorer
Digimon Adventure Kabaneri of the Iron Fortress Dora the Explorer
action equal
action find_tuple_counts
relation voice actor
type television program
type common name
value 5
[{'concept': 'television program'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?o ) AS ?l ) WHERE { ?x property:voice_actor ?o . ?x rdf:type ontology:television_program . ?o rdf:type ontology:common_name } GROUP BY ?x } . FILTER ( ?l = 5 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q209170 Q14510200
P161
Q502895
USER
Which people were casted in The Romancing Star II or Mary Poppins ?
OR((Q14510200,P161,c(Q502895)), (Q209170,P161,c(Q502895)))
action filter_type
action union
action find
entity Q14510200
relation P161
action find
entity Q209170
relation P161
type Q502895
{'OR': [['Q14510200', 'P161', {'concept': 'Q502895'}], ['Q209170', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q209170 property:P161 ?h } UNION { resource:Q14510200 property:P161 ?h } } . ?h rdf:type ontology:Q502895 }
Mary Poppins The Romancing Star II
action filter_type
action union
action find
entity The Romancing Star II
relation cast member
action find
entity Mary Poppins
relation cast member
type common name
{'OR': [['The Romancing Star II', 'cast member', {'concept': 'common name'}], ['Mary Poppins', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Mary_Poppins property:cast_member ?h } UNION { resource:The_Romancing_Star_II property:cast_member ?h } } . ?h rdf:type ontology:common_name }
[]
common name
Q1745826 Q5158665 Q249968 Q373306 Q2544573 Q1983282 Q233009 Q706219 Q109556 Q1795498
SYSTEM
Some of them are Klaus W. Krause, Cyril Delevanti, Lester Matthews, Alan Napier, Dal McKennon, J. Pat O'Malley, Elsa Lanchester, Carina Lau, Inge Landgut, Käte Jaenicke
Q111139 Q249968 Q310295 Q724187 Q233009 Q2412586 Q3087644 Q283904 Q1290301 Q5158665 Q272579 Q711731 Q3037066 Q2544573 Q443030 Q1745826 Q698507 Q2739967 Q5368085 Q100956 Q445608 Q2502759 Q1609280 Q510156 Q1983282 Q838375 Q1328438 Q1444326 Q1795498 Q2157865 Q181425 Q1356064 Q706219 Q373306 Q161819 Q2865227 Q16766 Q382464 Q707336 Q3090787 Q230159 Q3106793 Q1998128 Q453415 Q933980 Q577687 Q259537 Q109556 Q113716 Q2149695
OR((Q14510200,P161,c(Q502895)), (Q209170,P161,c(Q502895)))
action filter_type
action union
action find
entity Q14510200
relation P161
action find
entity Q209170
relation P161
type Q502895
[ANSWERS] were casted in The Romancing Star II or Mary Poppins
{'OR': [['Q14510200', 'P161', {'concept': 'Q502895'}], ['Q209170', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q209170 property:P161 ?h } UNION { resource:Q14510200 property:P161 ?h } } . ?h rdf:type ontology:Q502895 }
Harry Wüstenhagen Lester Matthews Dick Van Dyke Matthew Garber Elsa Lanchester Daws Butler Marni Nixon Karen Dotrice Eduard Wandrey Cyril Delevanti Glynis Johns Arthur Treacher Doris Lloyd Dal McKennon Hermione Baddeley Klaus W. Krause Natalis Chan Jimmy MacDonald Stanley Fung Friedrich Schoenfelder Eric Tsang Uta Hallant Herbert Weißbach Marjorie Bennett J. Pat O'Malley Lo Hoi-pang Elfe Schneider Frank Turba Käte Jaenicke Robert Klupp Chow Yun-fat Erna Haffner Carina Lau Alan Napier Julie Andrews Arthur Malet Andy Lau Don Barclay Wong Jing Thurl Ravenscroft Jane Darwell Ginny Tyler Betty Lou Gerson Reta Shaw David Tomlinson Reginald Owen Ed Wynn Inge Landgut Paul Wilhelm Hubert Wagner Richard Handwerk
Klaus W. Krause, Cyril Delevanti, Lester Matthews, Alan Napier, Dal McKennon, J. Pat O'Malley, Elsa Lanchester, Carina Lau, Inge Landgut and Käte Jaenicke were casted in The Romancing Star II or Mary Poppins
Klaus W. Krause Cyril Delevanti Lester Matthews Alan Napier Dal McKennon J. Pat O'Malley Elsa Lanchester Carina Lau Inge Landgut Käte Jaenicke
action filter_type
action union
action find
entity The Romancing Star II
relation cast member
action find
entity Mary Poppins
relation cast member
type common name
{'OR': [['The Romancing Star II', 'cast member', {'concept': 'common name'}], ['Mary Poppins', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Mary_Poppins property:cast_member ?h } UNION { resource:The_Romancing_Star_II property:cast_member ?h } } . ?h rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q919835
P106
Q28640 Q12737077
USER
How many professions and occupations are the professions of Eric Linklater ?
(Q919835,P106,c(Q28640)) (Q919835,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q919835
relation P106
type Q28640
action filter_type
action find
entity Q919835
relation P106
type Q12737077
['Q919835', 'P106', {'concept': 'Q28640'}] ['Q919835', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { { ?l rdf:type ontology:Q28640 . resource:Q919835 property:P106 ?l } UNION { ?l rdf:type ontology:Q12737077 . resource:Q919835 property:P106 ?l } }
Eric Linklater
action count
action union
action filter_type
action find
entity Eric Linklater
relation occupation
type profession
action filter_type
action find
entity Eric Linklater
relation occupation
type occupation
['Eric Linklater', 'occupation', {'concept': 'profession'}] ['Eric Linklater', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { { ?l rdf:type ontology:profession . resource:Eric_Linklater property:occupation ?l } UNION { ?l rdf:type ontology:occupation . resource:Eric_Linklater property:occupation ?l } }
[]
profession occupation
SYSTEM
1 professions and 5 occupations
Q201788 Q28389 Q6625963 Q82955 Q1930187 Q36180
(Q919835,P106,c(Q28640)) (Q919835,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q919835
relation P106
type Q28640
action filter_type
action find
entity Q919835
relation P106
type Q12737077
[ANSWER]
['Q919835', 'P106', {'concept': 'Q28640'}] ['Q919835', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { { ?l rdf:type ontology:Q28640 . resource:Q919835 property:P106 ?l } UNION { ?l rdf:type ontology:Q12737077 . resource:Q919835 property:P106 ?l } }
historian screenwriter novelist politician journalist writer
1 professions and 5 occupations
action count
action union
action filter_type
action find
entity Eric Linklater
relation occupation
type profession
action filter_type
action find
entity Eric Linklater
relation occupation
type occupation
['Eric Linklater', 'occupation', {'concept': 'profession'}] ['Eric Linklater', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { { ?l rdf:type ontology:profession . resource:Eric_Linklater property:occupation ?l } UNION { ?l rdf:type ontology:occupation . resource:Eric_Linklater property:occupation ?l } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q919835
P20
Q56061
USER
Where did that person die ?
action filter_type
action find
entity Q919835
relation P20
type Q56061
SELECT DISTINCT ?j WHERE { resource:Q919835 property:P20 ?j . ?j rdf:type ontology:Q56061 }
Eric Linklater
action filter_type
action find
entity Eric Linklater
relation place of death
type administrative territorial entity
SELECT DISTINCT ?j WHERE { resource:Eric_Linklater property:place_of_death ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q36405
SYSTEM
Aberdeen
Q36405
action filter_type
action find
entity Q919835
relation P20
type Q56061
That person died in [ANSWER]
SELECT DISTINCT ?j WHERE { resource:Q919835 property:P20 ?j . ?j rdf:type ontology:Q56061 }
Aberdeen
That person died in Aberdeen
Aberdeen
action filter_type
action find
entity Eric Linklater
relation place of death
type administrative territorial entity
SELECT DISTINCT ?j WHERE { resource:Eric_Linklater property:place_of_death ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q7615872 Q919835
P20
Q56061
USER
Or Stewart McAllister?
OR((Q919835,P20,c(Q56061)), (Q7615872,P20,c(Q56061)))
action filter_type
action union
action find
entity Q919835
relation P20
action find
entity Q7615872
relation P20
type Q56061
{'OR': [['Q919835', 'P20', {'concept': 'Q56061'}], ['Q7615872', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q919835 property:P20 ?n } UNION { resource:Q7615872 property:P20 ?n } } . ?n rdf:type ontology:Q56061 }
Stewart McAllister Eric Linklater
action filter_type
action union
action find
entity Eric Linklater
relation place of death
action find
entity Stewart McAllister
relation place of death
type administrative territorial entity
{'OR': [['Eric Linklater', 'place of death', {'concept': 'administrative territorial entity'}], ['Stewart McAllister', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Eric_Linklater property:place_of_death ?n } UNION { resource:Stewart_McAllister property:place_of_death ?n } } . ?n rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1011389 Q36405
SYSTEM
Carluke, Aberdeen
Q1011389 Q36405
OR((Q919835,P20,c(Q56061)), (Q7615872,P20,c(Q56061)))
action filter_type
action union
action find
entity Q919835
relation P20
action find
entity Q7615872
relation P20
type Q56061
[ANSWERS]
{'OR': [['Q919835', 'P20', {'concept': 'Q56061'}], ['Q7615872', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q919835 property:P20 ?n } UNION { resource:Q7615872 property:P20 ?n } } . ?n rdf:type ontology:Q56061 }
Carluke Aberdeen
Carluke Aberdeen
action filter_type
action union
action find
entity Eric Linklater
relation place of death
action find
entity Stewart McAllister
relation place of death
type administrative territorial entity
{'OR': [['Eric Linklater', 'place of death', {'concept': 'administrative territorial entity'}], ['Stewart McAllister', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Eric_Linklater property:place_of_death ?n } UNION { resource:Stewart_McAllister property:place_of_death ?n } } . ?n rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P941
Q838948 Q11424 Q2342494
USER
Which works of art inspired min number of films and collectables ?
(c(Q11424)|c(Q2342494),P941,c(Q838948))
action argmin
action union
action find_reverse_tuple_counts
relation P941
type Q838948
type Q11424
action find_reverse_tuple_counts
relation P941
type Q838948
type Q2342494
[[{'concept': 'Q11424'}, {'concept': 'Q2342494'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) ?o WHERE { ?y rdf:type ?c . VALUES ( ?c ) { ( ontology:Q11424 ) ( ontology:Q2342494 ) } } GROUP BY ?o } . FILTER ( ?m = ?f ) . { SELECT DISTINCT ( MIN ( ?g ) AS ?f ) { SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) ?x WHERE { { ?q property:P941 ?x . ?x rdf:type ontology:Q838948 . ?q rdf:type ontology:Q11424 } UNION { ?q property:P941 ?x . ?x rdf:type ontology:Q838948 . ?q rdf:type ontology:Q2342494 } } GROUP BY ?x } } }
action argmin
action union
action find_reverse_tuple_counts
relation inspired by
type work of art
type film
action find_reverse_tuple_counts
relation inspired by
type work of art
type collectable
[[{'concept': 'film'}, {'concept': 'collectable'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) ?o WHERE { ?y rdf:type ?c . VALUES ( ?c ) { ( ontology:film ) ( ontology:collectable ) } } GROUP BY ?o } . FILTER ( ?m = ?f ) . { SELECT DISTINCT ( MIN ( ?g ) AS ?f ) { SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) ?x WHERE { { ?q property:inspired_by ?x . ?x rdf:type ontology:work_of_art . ?q rdf:type ontology:film } UNION { ?q property:inspired_by ?x . ?x rdf:type ontology:work_of_art . ?q rdf:type ontology:collectable } } GROUP BY ?x } } }
[]
work of art film collectable
Q1144983 Q17738 Q107724
SYSTEM
Animal Kingdom, Star Wars Episode IV: A New Hope, Thunderball
Q125191 Q1136305 Q1198611 Q107724 Q1856846 Q7758112 Q46239 Q1852671 Q17738 Q1345920 Q181598 Q2568137 Q753298 Q201293 Q1754737 Q1432001 Q1144983 Q18668045 Q7445655 Q186014 Q4936847 Q3223805 Q5968141 Q379873 Q734834 Q1170100 Q375786 Q465478 Q493755 Q214619 Q169082
(c(Q11424)|c(Q2342494),P941,c(Q838948))
action argmin
action union
action find_reverse_tuple_counts
relation P941
type Q838948
type Q11424
action find_reverse_tuple_counts
relation P941
type Q838948
type Q2342494
[ANSWERS] inspired min number of films and collectables
[[{'concept': 'Q11424'}, {'concept': 'Q2342494'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) ?o WHERE { ?y rdf:type ?c . VALUES ( ?c ) { ( ontology:Q11424 ) ( ontology:Q2342494 ) } } GROUP BY ?o } . FILTER ( ?m = ?f ) . { SELECT DISTINCT ( MIN ( ?g ) AS ?f ) { SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) ?x WHERE { { ?q property:P941 ?x . ?x rdf:type ontology:Q838948 . ?q rdf:type ontology:Q11424 } UNION { ?q property:P941 ?x . ?x rdf:type ontology:Q838948 . ?q rdf:type ontology:Q2342494 } } GROUP BY ?x } } }
photograph Doryphoros The Absent-Minded Professor Thunderball The Ballad of Cable Hogue The Pretty Sister of Jose Statue of Zeus at Olympia Carnival of Souls Star Wars Episode IV: A New Hope Song of the South King Lear How to Explain Pictures to a Dead Hare Uncle Vanya Roman Holiday Lady Snowblood Torquato Tasso Animal Kingdom The Old Fisherman Seedbed Zeitgeist: The Movie Body Pressure The Judgement of Paris La sirena varada Who Framed Roger Rabbit Ghent Altarpiece The Philadelphia Experiment Hippolytus Star Trek II: The Wrath of Khan Coming to America The Little Mermaid 10 Things I Hate About You
Animal Kingdom, Star Wars Episode IV: A New Hope and Thunderball inspired min number of films and collectables
Animal Kingdom Star Wars Episode IV: A New Hope Thunderball
action argmin
action union
action find_reverse_tuple_counts
relation inspired by
type work of art
type film
action find_reverse_tuple_counts
relation inspired by
type work of art
type collectable
[[{'concept': 'film'}, {'concept': 'collectable'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) ?o WHERE { ?y rdf:type ?c . VALUES ( ?c ) { ( ontology:film ) ( ontology:collectable ) } } GROUP BY ?o } . FILTER ( ?m = ?f ) . { SELECT DISTINCT ( MIN ( ?g ) AS ?f ) { SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) ?x WHERE { { ?q property:inspired_by ?x . ?x rdf:type ontology:work_of_art . ?q rdf:type ontology:film } UNION { ?q property:inspired_by ?x . ?x rdf:type ontology:work_of_art . ?q rdf:type ontology:collectable } } GROUP BY ?x } } }
[]