Simple Question (Direct)
Simple Question
Q657943
P136
Q1792379
USER
What can be considered as category for Fanaa ?
(Q657943,P136,c(Q1792379))
action filter_type
action find
entity Q657943
relation P136
type Q1792379
['Q657943', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?s WHERE { resource:Q657943 property:P136 ?s . ?s rdf:type ontology:Q1792379 }
Fanaa
action filter_type
action find
entity Fanaa
relation genre
type art genre
['Fanaa', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?s WHERE { resource:Fanaa property:genre ?s . ?s rdf:type ontology:art_genre }
[]
art genre
Q1054574 Q130232
SYSTEM
romance film, drama film
Q1054574 Q130232
(Q657943,P136,c(Q1792379))
action filter_type
action find
entity Q657943
relation P136
type Q1792379
[ANSWERS] can be considered as category for Fanaa
['Q657943', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?s WHERE { resource:Q657943 property:P136 ?s . ?s rdf:type ontology:Q1792379 }
romance film drama film
Romance film and drama film can be considered as category for Fanaa
romance film drama film
action filter_type
action find
entity Fanaa
relation genre
type art genre
['Fanaa', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?s WHERE { resource:Fanaa property:genre ?s . ?s rdf:type ontology:art_genre }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1054574 Q130232
P136
Q502895
USER
Which people have romance film and drama film as their category ?
(c(Q502895),P136,Q1054574) (c(Q502895),P136,Q130232)
action union
action filter_type
action find_reverse
entity Q1054574
relation P136
type Q502895
action filter_type
action find_reverse
entity Q130232
relation P136
type Q502895
[{'concept': 'Q502895'}, 'P136', 'Q1054574'] [{'concept': 'Q502895'}, 'P136', 'Q130232']
SELECT DISTINCT ?n WHERE { { ?n rdf:type ontology:Q502895 . ?n property:P136 resource:Q130232 } UNION { ?n property:P136 resource:Q1054574 . ?n rdf:type ontology:Q502895 } }
romance film drama film
action union
action filter_type
action find_reverse
entity romance film
relation genre
type common name
action filter_type
action find_reverse
entity drama film
relation genre
type common name
[{'concept': 'common name'}, 'genre', 'romance film'] [{'concept': 'common name'}, 'genre', 'drama film']
SELECT DISTINCT ?n WHERE { { ?n rdf:type ontology:common_name . ?n property:genre resource:drama_film } UNION { ?n property:genre resource:romance_film . ?n rdf:type ontology:common_name } }
[]
common name
Q1126355 Q3591203 Q99871
SYSTEM
Connie Walther, Éric Laborey, Robert Thalheim
Q7498644 Q3591203 Q1126355 Q99871 Q20109507
(c(Q502895),P136,Q1054574) (c(Q502895),P136,Q130232)
action union
action filter_type
action find_reverse
entity Q1054574
relation P136
type Q502895
action filter_type
action find_reverse
entity Q130232
relation P136
type Q502895
[ANSWERS] have romance film and drama film as their category
[{'concept': 'Q502895'}, 'P136', 'Q1054574'] [{'concept': 'Q502895'}, 'P136', 'Q130232']
SELECT DISTINCT ?n WHERE { { ?n rdf:type ontology:Q502895 . ?n property:P136 resource:Q130232 } UNION { ?n property:P136 resource:Q1054574 . ?n rdf:type ontology:Q502895 } }
Shirl Jennings Éric Laborey Connie Walther Robert Thalheim César Augusto Acevedo
Connie Walther, Éric Laborey and Robert Thalheim have romance film and drama film as their category
Connie Walther Éric Laborey Robert Thalheim
action union
action filter_type
action find_reverse
entity romance film
relation genre
type common name
action filter_type
action find_reverse
entity drama film
relation genre
type common name
[{'concept': 'common name'}, 'genre', 'romance film'] [{'concept': 'common name'}, 'genre', 'drama film']
SELECT DISTINCT ?n WHERE { { ?n rdf:type ontology:common_name . ?n property:genre resource:drama_film } UNION { ?n property:genre resource:romance_film . ?n rdf:type ontology:common_name } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1126355 Q3591203 Q99871
P136
Q1792379
USER
What can be considered as category for those people ?
(Q1126355,P136,c(Q1792379)) (Q3591203,P136,c(Q1792379)) (Q99871,P136,c(Q1792379))
action filter_type
action find
entity prev_answer
relation P136
type Q1792379
['Q1126355', 'P136', {'concept': 'Q1792379'}] ['Q3591203', 'P136', {'concept': 'Q1792379'}] ['Q99871', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?g WHERE { ?v property:P136 ?g . ?g rdf:type ontology:Q1792379 . VALUES ( ?v ) { ( resource:Q7498644 ) ( resource:Q3591203 ) ( resource:Q1126355 ) } }
Connie Walther Éric Laborey Robert Thalheim
action filter_type
action find
entity prev_answer
relation genre
type art genre
['Connie Walther', 'genre', {'concept': 'art genre'}] ['Éric Laborey', 'genre', {'concept': 'art genre'}] ['Robert Thalheim', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?g WHERE { ?v property:genre ?g . ?g rdf:type ontology:art_genre . VALUES ( ?v ) { ( resource:Shirl_Jennings ) ( resource:Éric_Laborey ) ( resource:Connie_Walther ) } }
[]
art genre
Q130232 Q130232 Q7225114
SYSTEM
political satire for 3rd, drama film for 1st, 2nd
Q130232 Q130232 Q7225114 Q130232
(Q1126355,P136,c(Q1792379)) (Q3591203,P136,c(Q1792379)) (Q99871,P136,c(Q1792379))
action filter_type
action find
entity prev_answer
relation P136
type Q1792379
[ANSWERS]
['Q1126355', 'P136', {'concept': 'Q1792379'}] ['Q3591203', 'P136', {'concept': 'Q1792379'}] ['Q99871', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?g WHERE { ?v property:P136 ?g . ?g rdf:type ontology:Q1792379 . VALUES ( ?v ) { ( resource:Q7498644 ) ( resource:Q3591203 ) ( resource:Q1126355 ) } }
drama film drama film political satire drama film
Drama film, drama film and political satire can be considered as category for those people
drama film drama film political satire
action filter_type
action find
entity prev_answer
relation genre
type art genre
['Connie Walther', 'genre', {'concept': 'art genre'}] ['Éric Laborey', 'genre', {'concept': 'art genre'}] ['Robert Thalheim', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?g WHERE { ?v property:genre ?g . ?g rdf:type ontology:art_genre . VALUES ( ?v ) { ( resource:Shirl_Jennings ) ( resource:Éric_Laborey ) ( resource:Connie_Walther ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1126355
P735
Q82799
USER
What is the firstname of that person ?
(Q1126355,P735,c(Q82799))
action filter_type
action find
entity Q1126355
relation P735
type Q82799
['Q1126355', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?l WHERE { resource:Q1126355 property:P735 ?l . ?l rdf:type ontology:Q82799 }
Connie Walther
action filter_type
action find
entity Connie Walther
relation given name
type name
['Connie Walther', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?l WHERE { resource:Connie_Walther property:given_name ?l . ?l rdf:type ontology:name }
[]
name
Clarification for simple ques.
Q1126355
SYSTEM
Did you mean Connie Walther ?
Q130232 Q130232 Q7225114
(Q130232,P735,c(Q82799)) (Q130232,P735,c(Q82799)) (Q7225114,P735,c(Q82799))
[ANSWER]
['Q130232', 'P735', {'concept': 'Q82799'}] ['Q130232', 'P735', {'concept': 'Q82799'}] ['Q7225114', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?l WHERE { resource:Q1126355 property:P735 ?l . ?l rdf:type ontology:Q82799 }
drama film drama film political satire
Did you mean Connie Walther ?
Connie Walther
['drama film', 'given name', {'concept': 'name'}] ['drama film', 'given name', {'concept': 'name'}] ['political satire', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?l WHERE { resource:Connie_Walther property:given_name ?l . ?l rdf:type ontology:name }
[]
Simple Question (Coreferenced)
USER
Yes
(Q1126355,P735,c(Q82799))
['Q1126355', 'P735', {'concept': 'Q82799'}]
['Connie Walther', 'given name', {'concept': 'name'}]
[]
Q19819774
SYSTEM
Connie
Q19819774
(Q1126355,P735,c(Q82799))
action filter_type
action find
entity Q1126355
relation P735
type Q82799
The firstname of that person is named [ANSWER]
['Q1126355', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?l WHERE { resource:Q1126355 property:P735 ?l . ?l rdf:type ontology:Q82799 }
Connie
The firstname of that person is named Connie
Connie
action filter_type
action find
entity Connie Walther
relation given name
type name
['Connie Walther', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?l WHERE { resource:Connie_Walther property:given_name ?l . ?l rdf:type ontology:name }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q19819774 Q2896
P1750
Q186081
USER
Is September 19 the name day of Connie ?
(Q19819774,P1750,Q2896)
action is_in
entity Q2896
action find
entity Q19819774
relation P1750
['Q19819774', 'P1750', 'Q2896']
ASK WHERE { resource:Q19819774 property:P1750 resource:Q2896 }
Connie September 19
action is_in
entity September 19
action find
entity Connie
relation name day
['Connie', 'name day', 'September 19']
ASK WHERE { resource:Connie property:name_day resource:September_19 }
[]
time interval
SYSTEM
YES
(Q19819774,P1750,Q2896)
action is_in
entity Q2896
action find
entity Q19819774
relation P1750
[ANSWER]
['Q19819774', 'P1750', 'Q2896']
ASK WHERE { resource:Q19819774 property:P1750 resource:Q2896 }
Yes
action is_in
entity September 19
action find
entity Connie
relation name day
['Connie', 'name day', 'September 19']
ASK WHERE { resource:Connie property:name_day resource:September_19 }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q99871 Q3026332 Q3275683
P19
Q56061
USER
Does Robert Thalheim have location of birth at Ottoland and Gulworthy ?
(Q99871,P19,Q3026332) (Q99871,P19,Q3275683)
action is_in
entity Q99871
action intersection
action find_reverse
entity Q3026332
relation P19
action find_reverse
entity Q3275683
relation P19
['Q99871', 'P19', 'Q3026332'] ['Q99871', 'P19', 'Q3275683']
ASK WHERE { resource:Q99871 property:P19 resource:Q3026332 . resource:Q99871 property:P19 resource:Q3275683 }
Robert Thalheim Ottoland Gulworthy
action is_in
entity Robert Thalheim
action intersection
action find_reverse
entity Ottoland
relation place of birth
action find_reverse
entity Gulworthy
relation place of birth
['Robert Thalheim', 'place of birth', 'Ottoland'] ['Robert Thalheim', 'place of birth', 'Gulworthy']
ASK WHERE { resource:Robert_Thalheim property:place_of_birth resource:Ottoland . resource:Robert_Thalheim property:place_of_birth resource:Gulworthy }
[]
administrative territorial entity
SYSTEM
NO
(Q99871,P19,Q3026332) (Q99871,P19,Q3275683)
action is_in
entity Q99871
action intersection
action find_reverse
entity Q3026332
relation P19
action find_reverse
entity Q3275683
relation P19
[ANSWER]
['Q99871', 'P19', 'Q3026332'] ['Q99871', 'P19', 'Q3275683']
ASK WHERE { resource:Q99871 property:P19 resource:Q3026332 . resource:Q99871 property:P19 resource:Q3275683 }
No
action is_in
entity Robert Thalheim
action intersection
action find_reverse
entity Ottoland
relation place of birth
action find_reverse
entity Gulworthy
relation place of birth
['Robert Thalheim', 'place of birth', 'Ottoland'] ['Robert Thalheim', 'place of birth', 'Gulworthy']
ASK WHERE { resource:Robert_Thalheim property:place_of_birth resource:Ottoland . resource:Robert_Thalheim property:place_of_birth resource:Gulworthy }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q130232 Q99871
P136 P58
Q838948
USER
Which works of art are Robert Thalheim a screenwriter of and have drama film as genre ?
AND((c(Q838948),P58,Q99871), (c(Q838948),P136,Q130232))
action filter_type
action intersection
action find_reverse
entity Q99871
relation P58
action find_reverse
entity Q130232
relation P136
type Q838948
{'AND': [[{'concept': 'Q838948'}, 'P58', 'Q99871'], [{'concept': 'Q838948'}, 'P136', 'Q130232']]}
SELECT DISTINCT ?x WHERE { ?x property:P58 resource:Q99871 . ?x property:P136 resource:Q130232 . ?x rdf:type ontology:Q838948 }
drama film Robert Thalheim
action filter_type
action intersection
action find_reverse
entity Robert Thalheim
relation screenwriter
action find_reverse
entity drama film
relation genre
type work of art
{'AND': [[{'concept': 'work of art'}, 'screenwriter', 'Robert Thalheim'], [{'concept': 'work of art'}, 'genre', 'drama film']]}
SELECT DISTINCT ?x WHERE { ?x property:screenwriter resource:Robert_Thalheim . ?x property:genre resource:drama_film . ?x rdf:type ontology:work_of_art }
[]
work of art
Q451280
SYSTEM
And Along Come Tourists
Q451280
AND((c(Q838948),P58,Q99871), (c(Q838948),P136,Q130232))
action filter_type
action intersection
action find_reverse
entity Q99871
relation P58
action find_reverse
entity Q130232
relation P136
type Q838948
And Along come Tourists is Robert Thalheim a screenwriter of and have drama film as genre
{'AND': [[{'concept': 'Q838948'}, 'P58', 'Q99871'], [{'concept': 'Q838948'}, 'P136', 'Q130232']]}
SELECT DISTINCT ?x WHERE { ?x property:P58 resource:Q99871 . ?x property:P136 resource:Q130232 . ?x rdf:type ontology:Q838948 }
And Along Come Tourists
And Along come Tourists is Robert Thalheim a screenwriter of and have drama film as genre
And Along Come Tourists
action filter_type
action intersection
action find_reverse
entity Robert Thalheim
relation screenwriter
action find_reverse
entity drama film
relation genre
type work of art
{'AND': [[{'concept': 'work of art'}, 'screenwriter', 'Robert Thalheim'], [{'concept': 'work of art'}, 'genre', 'drama film']]}
SELECT DISTINCT ?x WHERE { ?x property:screenwriter resource:Robert_Thalheim . ?x property:genre resource:drama_film . ?x rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1054574
P136
Q166142 Q201658
USER
How many applications or film genres have romance film as their category ?
(c(Q166142),P136,Q1054574) (c(Q201658),P136,Q1054574)
action count
action union
action filter_type
action find_reverse
entity Q1054574
relation P136
type Q166142
action filter_type
action find_reverse
entity Q1054574
relation P136
type Q201658
[{'concept': 'Q166142'}, 'P136', 'Q1054574'] [{'concept': 'Q201658'}, 'P136', 'Q1054574']
SELECT DISTINCT ( COUNT ( ?j ) AS ?d ) WHERE { VALUES ( ?g ) { ( ontology:Q166142 ) ( ontology:Q201658 ) } . ?j rdf:type ?g }
romance film
action count
action union
action filter_type
action find_reverse
entity romance film
relation genre
type application
action filter_type
action find_reverse
entity romance film
relation genre
type film genre
[{'concept': 'application'}, 'genre', 'romance film'] [{'concept': 'film genre'}, 'genre', 'romance film']
SELECT DISTINCT ( COUNT ( ?j ) AS ?d ) WHERE { VALUES ( ?g ) { ( ontology:application ) ( ontology:film_genre ) } . ?j rdf:type ?g }
[]
application film genre
SYSTEM
269
Q466816 Q3985846 Q968145 Q4906349 Q7487346 Q3961897 Q7090608 Q1196670 Q2085303 Q4743156 Q2010048 Q3574963 Q7728925 Q7721300 Q6470212 Q5466889 Q7727868 Q16252728 Q6469515 Q7718648 Q17034797 Q654439 Q5227952 Q2444946 Q4019800 Q3747534 Q654086 Q2452327 Q6798032 Q2289935 Q7740246 Q4882794 Q4812513 Q7755573 Q1586983 Q3747849 Q3519771 Q7735602 Q7676508 Q4026976 Q3940834 Q474531 Q6650968 Q4766826 Q3824360 Q3724876 Q7749044 Q5398514 Q1524084 Q1809883 Q4967450 Q4659190 Q7837981 Q3983359 Q1969037 Q7750667 Q3020242 Q6412320 Q7368592 Q7734145 Q3987857 Q18210170 Q7746947 Q16607870 Q238211 Q4837203 Q7317888 Q3776675 Q5583072 Q625141 Q17113490 Q4972487 Q1219825 Q7362425 Q4657031 Q1753597 Q2893061 Q979022 Q1748447 Q7766567 Q5201317 Q2426434 Q1540341 Q14954294 Q4859546 Q7204320 Q5533683 Q16254009 Q3853185 Q1118664 Q1824941 Q1970114 Q16961904 Q1713338 Q4658315 Q3736257 Q2213949 Q5160002 Q5623855 Q4749734 Q7734901 Q2023900 Q14954286 Q631707 Q7731010 Q3989388 Q7699261 Q7721125 Q4655732 Q4960792 Q7726591 Q7751309 Q3739901 Q3989473 Q3790802 Q7764949 Q5216107 Q14954285 Q3857083 Q1569918 Q14954289 Q6751271 Q7712242 Q1798755 Q7683015 Q7712402 Q7738008 Q3772044 Q1990830 Q335683 Q15916806 Q3881512 Q4659267 Q6469572 Q6690230 Q1143988 Q4837201 Q4023004 Q6091788 Q7753964 Q3847730 Q1891790 Q3989232 Q4700956 Q14954290 Q7747624 Q14954292 Q2570819 Q581770 Q3645237 Q218869 Q3924798 Q6012712 Q1559662 Q509649 Q5207942 Q7717701 Q2380462 Q905932 Q3989738 Q3645187 Q3986081 Q16254303 Q7718748 Q4837202 Q1987496 Q3986366 Q3989622 Q7729064 Q6315744 Q17125540 Q14948574 Q8058393 Q645844 Q913865 Q3940179 Q3986473 Q3604781 Q4660664 Q4655715 Q3861494 Q7062301 Q152429 Q3987111 Q384044 Q1579140 Q5692399 Q5732375 Q1473055 Q8856484 Q3844766 Q638165 Q4949881 Q5732379 Q3209123 Q3992049 Q3988823 Q4006271 Q683726 Q607786 Q4926503 Q3640746 Q2504322 Q5307043 Q3725224 Q7735624 Q4007617 Q17182400 Q3793863 Q939497 Q2289046 Q5560353 Q4000773 Q1187189 Q16248498 Q5212126 Q1195060 Q3978779 Q3011247 Q18002980 Q3986509 Q4769346 Q3986614 Q13423792 Q13423791 Q7405071 Q4189075 Q2567698 Q3989999 Q1269669 Q2584040 Q4976279 Q7735980 Q3666962 Q4783371 Q727334 Q587579 Q17021859 Q3060270 Q2066803 Q4769343 Q3987691 Q6691088 Q4676468 Q3989672 Q520732 Q1195336 Q587925 Q288425 Q7745197 Q2067499 Q7758223 Q3985851 Q7764714 Q3811516 Q6164991 Q7575657 Q5465481 Q272036 Q5234789 Q5689608 Q17400192 Q3785085 Q1366555 Q4657747 Q1667540 Q5380171 Q16611661 Q3231708
(c(Q166142),P136,Q1054574) (c(Q201658),P136,Q1054574)
action count
action union
action filter_type
action find_reverse
entity Q1054574
relation P136
type Q166142
action filter_type
action find_reverse
entity Q1054574
relation P136
type Q201658
[ANSWER]
[{'concept': 'Q166142'}, 'P136', 'Q1054574'] [{'concept': 'Q201658'}, 'P136', 'Q1054574']
SELECT DISTINCT ( COUNT ( ?j ) AS ?d ) WHERE { VALUES ( ?g ) { ( ontology:Q166142 ) ( ontology:Q201658 ) } . ?j rdf:type ?g }
The Last Command The Belle of Broadway Eyes of the Soul The Midshipman Sham Sinners in Silk Omoide ni Kanata Kimi: Memories Off The Sheik An American Citizen American Beauty The Blot Zaza The Dark Angel The Captive Lady Hamilton For Those We Love The Courtship of Miles Standish Lovers Ladies Must Live The Blonde Saint Sinners in Heaven The Merry Widow Daughters of Pleasure Valkyria Chronicles II Wildflower Fool's Paradise The Divine Woman Blood and Sand Maytime A Lady of Chance The Hope Chest Believe Me, Xantippe At the End of the World The Other Side of the Door The Docks of New York Footlights The Americano The Gaiety Girl True Love Waits Victory Romeo and Juliet Hotel Chevalier Little Miss Hoover Anna Ascends The Masked Bride Empty Hands The Lover of Camille Esmeralda The Show The Man Who Laughs Bright Lights A Reno Divorce Trelawny of the Wells Temptation Hula The Mating Call The Soul of Buddha King of the Castle Rosenmontag The First Kiss The Lady in Ermine When Men Desire The Leopard Woman Sowing the Wind City Lights Bab's Matinee Idol Revenge Gretna Green Good and Naughty Woman Is the Future of Man The Manicure Girl Broadway Nights The Four Horsemen of the Apocalypse Romance of the Underworld A Girl Named Mary Cleopatra Beau Brummel Pauvre Pierrot Comedy of the Heart The Stolen Kiss Cytherea The Wind Across to Singapore Roses from the South Barbed Wire Pleasures of the Rich Gentle Julia The Passion Flower Mayblossom A Woman There Was Beyond the Rocks Souls for Sale Argentine Love The Wedding March A Modern Musketeer Eye for Eye Lady of the Night Confessions Gwyneth of the Welsh Hills An Affair of the Follies The Fortunes of Fifi Trifling Women The Blue Danube Paris The Dressmaker from Paris The Soul of Broadway Ten Modern Commandments The Canadian A Carmen of the North Brenda of the Barge The Code of Marcia Gray The Midnight Express Fascinating Youth The Stolen Bride Children of Divorce The Smuggler's Bride of Mallorca Dangerous Innocence The Black Forest Girl Midsummer Madness Sherlock, Jr. His Majesty's Lieutenant Manon Lescaut The Ace of Cads La Cucaracha Tangled Trails The Adorable Cheat The Greater Glory The Loves of Carmen The Little American Amarilly of Clothes-Line Alley The Lotus Eater Old Heidelberg A Romance of Old Baghdad Ladies of the Mob Love The Dove Bab's Burglar You Never Know Women It Happened Thus The Next Corner Marianne Beauty's Worth The She Devil Akiiro Renka The Last Waltz The Little Irish Girl The Motorist Bride Don Juan The Boob Broken Chains Heart o' the Hills Prunella In the Palace of the King The Saga of Gosta Berling The Barker Daddies The Big Little Person Rosita Broken Blossoms The Two Orphans Broadway Rose The Boy Friend Prisoners of Love The Blue Danube Bab's Diary Ivanhoe The Coming of Amos The Third Degree The Darling of Paris Just Another Blonde South of Suva Kick-Heart Young Romance The Kreutzer Sonata The Volga Boatman Rogues and Romance The Crucible Across the Pacific A Window in Piccadilly A Canção da Primavera Monte Cristo Not for Sale Snow White The Forbidden City The Mysterious Lady The Letter Heart of a Siren Her Night of Romance Legong Bonds of Love Mannequin Torrent Bound in Morocco Her Official Fathers All the Brothers Were Valiant To Have and to Hold The Pretty Sister of Jose Upstage Dream Street Don Q, Son of Zorro Blind Alleys Black Oxen Down to the Sea in Ships Dress Parade Enemies of Women The Gallant Hussar Valencia Gabriela Doctor Antonio Lonesome For the Love of Mike Gigolo Girl Shy Way Down East As Man Desires Dame Chance The Kiss Sweet Kitty Bellairs The Spanish Dancer Lava The Dangerous Flirt Annie Laurie The Devil-Stone Rich Man, Poor Man Out of a Clear Sky Sally Bishop Boy Meets Boy A Girl in Every Port The White Flower The Temptress The Only Thing Brown Sugar The Gay Deceiver Cheaper to Marry Arabian Love Regeneration Tabu Stand and Deliver The Conquering Power Show Boat Annie Laurie The Inner Chamber Love Me and the World Is Mine Across the Atlantic The Trail of the Lonesome Pine Desert Nights The Magician The Covered Wagon The Hunchback of Notre Dame The Lady of the Lake Der Herr der Liebe The Primitive Lover The Beloved Vagabond The Skyrocket Just Suppose Java Head Speedway Food for the Gods Wings David Harum Headin' South Her Love Story Her Nameless Child Flesh and the Devil A Light Woman Woman to Woman Enter Madame Sweet Lavender The Woman God Forgot
269
action count
action union
action filter_type
action find_reverse
entity romance film
relation genre
type application
action filter_type
action find_reverse
entity romance film
relation genre
type film genre
[{'concept': 'application'}, 'genre', 'romance film'] [{'concept': 'film genre'}, 'genre', 'romance film']
SELECT DISTINCT ( COUNT ( ?j ) AS ?d ) WHERE { VALUES ( ?g ) { ( ontology:application ) ( ontology:film_genre ) } . ?j rdf:type ?g }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q40831 Q7225114
P136
Q15416
USER
Which television programs have political satire and comedy as genre ?
AND((c(Q15416),P136,Q7225114), (c(Q15416),P136,Q40831))
action filter_type
action intersection
action find_reverse
entity Q7225114
relation P136
action find_reverse
entity Q40831
relation P136
type Q15416
{'AND': [[{'concept': 'Q15416'}, 'P136', 'Q7225114'], [{'concept': 'Q15416'}, 'P136', 'Q40831']]}
SELECT DISTINCT ?t WHERE { ?t property:P136 resource:Q7225114 . ?t property:P136 resource:Q40831 . ?t rdf:type ontology:Q15416 }
comedy political satire
action filter_type
action intersection
action find_reverse
entity political satire
relation genre
action find_reverse
entity comedy
relation genre
type television program
{'AND': [[{'concept': 'television program'}, 'genre', 'political satire'], [{'concept': 'television program'}, 'genre', 'comedy']]}
SELECT DISTINCT ?t WHERE { ?t property:genre resource:political_satire . ?t property:genre resource:comedy . ?t rdf:type ontology:television_program }
[]
television program
Q1130799 Q16735585 Q74801
SYSTEM
The Colbert Report, Last Week Tonight with John Oliver, Veep
Q1130799 Q16735585 Q74801
AND((c(Q15416),P136,Q7225114), (c(Q15416),P136,Q40831))
action filter_type
action intersection
action find_reverse
entity Q7225114
relation P136
action find_reverse
entity Q40831
relation P136
type Q15416
[ANSWERS] have political satire and comedy as genre
{'AND': [[{'concept': 'Q15416'}, 'P136', 'Q7225114'], [{'concept': 'Q15416'}, 'P136', 'Q40831']]}
SELECT DISTINCT ?t WHERE { ?t property:P136 resource:Q7225114 . ?t property:P136 resource:Q40831 . ?t rdf:type ontology:Q15416 }
The Colbert Report Last Week Tonight with John Oliver Veep
The Colbert Report, Last Week Tonight with John Oliver and Veep have political satire and comedy as genre
The Colbert Report Last Week Tonight with John Oliver Veep
action filter_type
action intersection
action find_reverse
entity political satire
relation genre
action find_reverse
entity comedy
relation genre
type television program
{'AND': [[{'concept': 'television program'}, 'genre', 'political satire'], [{'concept': 'television program'}, 'genre', 'comedy']]}
SELECT DISTINCT ?t WHERE { ?t property:genre resource:political_satire . ?t property:genre resource:comedy . ?t rdf:type ontology:television_program }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q830
P180
Q82799 Q386724 Q340169
USER
Which names are expressed in lesser number of works or medias than cattle ?
(c(Q386724)|c(Q340169),P180,c(Q82799))
action less
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q386724
action find_reverse_tuple_counts
relation P180
type Q82799
type Q340169
action count
action filter_multi_types
action find_reverse
entity Q830
relation P180
type Q386724
type Q340169
[[{'concept': 'Q386724'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) ?v WHERE { { ?x property:P180 ?v . ?v rdf:type ontology:Q82799 . ?x rdf:type ontology:Q386724 } UNION { ?x property:P180 ?v . ?v rdf:type ontology:Q82799 . ?x rdf:type ontology:Q340169 } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) WHERE { ?k property:P180 resource:Q830 . { ?k rdf:type ?l . VALUES ( ?l ) { ( ontology:Q386724 ) ( ontology:Q340169 ) } } } } . FILTER ( ?g < ?e ) }
cattle
action less
action union
action find_reverse_tuple_counts
relation depicts
type name
type work
action find_reverse_tuple_counts
relation depicts
type name
type media
action count
action filter_multi_types
action find_reverse
entity cattle
relation depicts
type work
type media
[[{'concept': 'work'}, {'concept': 'media'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) ?v WHERE { { ?x property:depicts ?v . ?v rdf:type ontology:name . ?x rdf:type ontology:work } UNION { ?x property:depicts ?v . ?v rdf:type ontology:name . ?x rdf:type ontology:media } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) WHERE { ?k property:depicts resource:cattle . { ?k rdf:type ?l . VALUES ( ?l ) { ( ontology:work ) ( ontology:media ) } } } } . FILTER ( ?g < ?e ) }
[]
name work media
Q1807269 Q876933 Q152
SYSTEM
leek, magi, fish
Q13219075 Q134609 Q6453151 Q41692 Q3711329 Q732775 Q36940 Q1517781 Q2092297 Q11946202 Q2258881 Q4767951 Q16529344 Q713019 Q1807269 Q201251 Q8331 Q8335 Q846664 Q3116510 Q1865281 Q1192868 Q2734060 Q2495957 Q1953597 Q15629245 Q25894 Q1466321 Q43115 Q858243 Q876933 Q190294 Q123120 Q214169 Q538906 Q308841 Q1360763 Q83931 Q9458574 Q152 Q5070208 Q859257 Q10968813
(c(Q386724)|c(Q340169),P180,c(Q82799))
action less
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q386724
action find_reverse_tuple_counts
relation P180
type Q82799
type Q340169
action count
action filter_multi_types
action find_reverse
entity Q830
relation P180
type Q386724
type Q340169
[ANSWERS] are expressed in lesser number of works or medias than cattle
[[{'concept': 'Q386724'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) ?v WHERE { { ?x property:P180 ?v . ?v rdf:type ontology:Q82799 . ?x rdf:type ontology:Q386724 } UNION { ?x property:P180 ?v . ?v rdf:type ontology:Q82799 . ?x rdf:type ontology:Q340169 } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) WHERE { ?k property:P180 resource:Q830 . { ?k rdf:type ?l . VALUES ( ?l ) { ( ontology:Q386724 ) ( ontology:Q340169 ) } } } } . FILTER ( ?g < ?e ) }
octopus Cynara scolymus toad mule wolf Partridge sugarcane shrimp eagle butterfly trout cattle goose cannoneer leek peacock fox raven hawk frog whale clam reed magpie slug lizard antelope Yellow jacket saint Tree squirrel magi mouflon vulture pheasant thistle snail Scipio locust wasp fish kangaroo fly jay
Leek, magi and fish are expressed in lesser number of works or medias than cattle
leek magi fish
action less
action union
action find_reverse_tuple_counts
relation depicts
type name
type work
action find_reverse_tuple_counts
relation depicts
type name
type media
action count
action filter_multi_types
action find_reverse
entity cattle
relation depicts
type work
type media
[[{'concept': 'work'}, {'concept': 'media'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) ?v WHERE { { ?x property:depicts ?v . ?v rdf:type ontology:name . ?x rdf:type ontology:work } UNION { ?x property:depicts ?v . ?v rdf:type ontology:name . ?x rdf:type ontology:media } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) WHERE { ?k property:depicts resource:cattle . { ?k rdf:type ?l . VALUES ( ?l ) { ( ontology:work ) ( ontology:media ) } } } } . FILTER ( ?g < ?e ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q726
P180
Q82799 Q386724 Q340169
USER
And what about horse?
(c(Q386724)|c(Q340169),P180,c(Q82799))
action less
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q386724
action find_reverse_tuple_counts
relation P180
type Q82799
type Q340169
action count
action filter_multi_types
action find_reverse
entity Q726
relation P180
type Q386724
type Q340169
[[{'concept': 'Q386724'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?f ) AS ?y ) WHERE { VALUES ( ?n ) { ( ontology:Q340169 ) ( ontology:Q386724 ) } . ?f rdf:type ?n } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { ?k property:P180 resource:Q726 . { { ?k rdf:type ontology:Q386724 } UNION { ?k rdf:type ontology:Q340169 } } } } . FILTER ( ?y < ?h ) }
horse
action less
action union
action find_reverse_tuple_counts
relation depicts
type name
type work
action find_reverse_tuple_counts
relation depicts
type name
type media
action count
action filter_multi_types
action find_reverse
entity horse
relation depicts
type work
type media
[[{'concept': 'work'}, {'concept': 'media'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?f ) AS ?y ) WHERE { VALUES ( ?n ) { ( ontology:media ) ( ontology:work ) } . ?f rdf:type ?n } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { ?k property:depicts resource:horse . { { ?k rdf:type ontology:work } UNION { ?k rdf:type ontology:media } } } } . FILTER ( ?y < ?h ) }
[]
name work media
Q144 Q1807269 Q876933
SYSTEM
dog, leek, magi
Q13219075 Q134609 Q5 Q6453151 Q830 Q3736439 Q41692 Q3711329 Q732775 Q36940 Q1517781 Q7368 Q7369 Q2092297 Q11946202 Q144 Q2258881 Q4767951 Q16529344 Q24067392 Q713019 Q1807269 Q201251 Q8331 Q8335 Q846664 Q3116510 Q3537778 Q1865281 Q1367 Q1192868 Q9394 Q2734060 Q2495957 Q1953597 Q15629245 Q25894 Q1466321 Q43115 Q858243 Q876933 Q190294 Q7378 Q123120 Q214169 Q538906 Q308841 Q1360763 Q83931 Q9458574 Q152 Q5070208 Q859257 Q10968813
(c(Q386724)|c(Q340169),P180,c(Q82799))
action less
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q386724
action find_reverse_tuple_counts
relation P180
type Q82799
type Q340169
action count
action filter_multi_types
action find_reverse
entity Q726
relation P180
type Q386724
type Q340169
[ANSWERS]
[[{'concept': 'Q386724'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?f ) AS ?y ) WHERE { VALUES ( ?n ) { ( ontology:Q340169 ) ( ontology:Q386724 ) } . ?f rdf:type ?n } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { ?k property:P180 resource:Q726 . { { ?k rdf:type ontology:Q386724 } UNION { ?k rdf:type ontology:Q340169 } } } } . FILTER ( ?y < ?h ) }
octopus Cynara scolymus human toad cattle duck mule wolf Partridge sugarcane shrimp Ovis aries dolphin eagle butterfly dog trout cattle goose Boy cannoneer leek peacock fox raven hawk frog donkeys whale monkey clam rabbit reed magpie slug lizard antelope Yellow jacket saint Tree squirrel magi mouflon elephant vulture pheasant thistle snail Scipio locust wasp fish kangaroo fly jay
dog leek magi
action less
action union
action find_reverse_tuple_counts
relation depicts
type name
type work
action find_reverse_tuple_counts
relation depicts
type name
type media
action count
action filter_multi_types
action find_reverse
entity horse
relation depicts
type work
type media
[[{'concept': 'work'}, {'concept': 'media'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?f ) AS ?y ) WHERE { VALUES ( ?n ) { ( ontology:media ) ( ontology:work ) } . ?f rdf:type ?n } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { ?k property:depicts resource:horse . { { ?k rdf:type ontology:work } UNION { ?k rdf:type ontology:media } } } } . FILTER ( ?y < ?h ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q144
P921
Q838948
USER
Which work of art has that name as its main topic ?
(c(Q838948),P921,Q144)
action filter_type
action find_reverse
entity Q144
relation P921
type Q838948
[{'concept': 'Q838948'}, 'P921', 'Q144']
SELECT DISTINCT ?t WHERE { ?t property:P921 resource:Q144 . ?t rdf:type ontology:Q838948 }
dog
action filter_type
action find_reverse
entity dog
relation main subject
type work of art
[{'concept': 'work of art'}, 'main subject', 'dog']
SELECT DISTINCT ?t WHERE { ?t property:main_subject resource:dog . ?t rdf:type ontology:work_of_art }
[]
work of art
Clarification for simple ques.
Q876933
SYSTEM
Did you mean magi ?
Q144 Q1807269 Q876933
(c(Q838948),P921,Q144) (c(Q838948),P921,Q1807269) (c(Q838948),P921,Q876933)
[ANSWER]
[{'concept': 'Q838948'}, 'P921', 'Q144'] [{'concept': 'Q838948'}, 'P921', 'Q1807269'] [{'concept': 'Q838948'}, 'P921', 'Q876933']
SELECT DISTINCT ?t WHERE { ?t property:P921 resource:Q144 . ?t rdf:type ontology:Q838948 }
dog leek magi
Did you mean magi ?
magi
[{'concept': 'work of art'}, 'main subject', 'dog'] [{'concept': 'work of art'}, 'main subject', 'leek'] [{'concept': 'work of art'}, 'main subject', 'magi']
SELECT DISTINCT ?t WHERE { ?t property:main_subject resource:dog . ?t rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
USER
No, I meant dog. Could you tell me the answer for that?
(c(Q838948),P921,Q144)
Q144
[{'concept': 'Q838948'}, 'P921', 'Q144']
[{'concept': 'work of art'}, 'main subject', 'dog']
[]
Q929169
SYSTEM
Roundabout dog
Q929169
(c(Q838948),P921,Q144)
action filter_type
action find_reverse
entity Q144
relation P921
type Q838948
[ANSWER] has that name as its main topic
[{'concept': 'Q838948'}, 'P921', 'Q144']
SELECT DISTINCT ?t WHERE { ?t property:P921 resource:Q144 . ?t rdf:type ontology:Q838948 }
Roundabout dog
Roundabout dog has that name as its main topic
Roundabout dog
action filter_type
action find_reverse
entity dog
relation main subject
type work of art
[{'concept': 'work of art'}, 'main subject', 'dog']
SELECT DISTINCT ?t WHERE { ?t property:main_subject resource:dog . ?t rdf:type ontology:work_of_art }
[]