Simple Question (Direct)
Simple Question
Q1575703
P1412
Q34770
USER
Which language can Hanna Jursch understand ?
(Q1575703,P1412,c(Q34770))
action filter_type
action find
entity Q1575703
relation P1412
type Q34770
['Q1575703', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q34770 . resource:Q1575703 property:P1412 ?j }
Hanna Jursch
action filter_type
action find
entity Hanna Jursch
relation languages spoken, written or signed
type language
['Hanna Jursch', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:language . resource:Hanna_Jursch property:languages_spoken,_written_or_signed ?j }
[]
language
Q397
SYSTEM
Latin
Q397
(Q1575703,P1412,c(Q34770))
action filter_type
action find
entity Q1575703
relation P1412
type Q34770
Hanna Jursch can understand the [ANSWER]
['Q1575703', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q34770 . resource:Q1575703 property:P1412 ?j }
Latin
Hanna Jursch can understand the Latin
Latin
action filter_type
action find
entity Hanna Jursch
relation languages spoken, written or signed
type language
['Hanna Jursch', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:language . resource:Hanna_Jursch property:languages_spoken,_written_or_signed ?j }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P2439
Q34770 Q502895 Q1969448
USER
Which languages are related to more number of people and terms than that language ?
(c(Q502895)|c(Q1969448),P2439,c(Q34770))
action greater
action union
action find_reverse_tuple_counts
relation P2439
type Q34770
type Q502895
action find_reverse_tuple_counts
relation P2439
type Q34770
type Q1969448
action count
action filter_multi_types
action find_reverse
entity Q397
relation P2439
type Q502895
type Q1969448
[[{'concept': 'Q502895'}, {'concept': 'Q1969448'}], 'P2439', {'concept': 'Q34770'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) ?t WHERE { VALUES ( ?q ) { ( ontology:Q502895 ) ( ontology:Q1969448 ) } . ?f rdf:type ?q } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { ?b property:P2439 resource:Q397 . { ?b rdf:type ?u . VALUES ( ?u ) { ( ontology:Q502895 ) ( ontology:Q1969448 ) } } } } . FILTER ( ?o > ?i ) }
action greater
action union
action find_reverse_tuple_counts
relation language
type language
type common name
action find_reverse_tuple_counts
relation language
type language
type term
action count
action filter_multi_types
action find_reverse
entity Latin
relation language
type common name
type term
[[{'concept': 'common name'}, {'concept': 'term'}], 'language', {'concept': 'language'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) ?t WHERE { VALUES ( ?q ) { ( ontology:common_name ) ( ontology:term ) } . ?f rdf:type ?q } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { ?b property:language resource:Latin . { ?b rdf:type ?u . VALUES ( ?u ) { ( ontology:common_name ) ( ontology:term ) } } } } . FILTER ( ?o > ?i ) }
[]
language common name term
Q1860 Q1321
SYSTEM
English, Spanish
Q1860 Q1321
(c(Q502895)|c(Q1969448),P2439,c(Q34770))
action greater
action union
action find_reverse_tuple_counts
relation P2439
type Q34770
type Q502895
action find_reverse_tuple_counts
relation P2439
type Q34770
type Q1969448
action count
action filter_multi_types
action find_reverse
entity Q397
relation P2439
type Q502895
type Q1969448
[ANSWERS] are related to more number of people and terms than that language
[[{'concept': 'Q502895'}, {'concept': 'Q1969448'}], 'P2439', {'concept': 'Q34770'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) ?t WHERE { VALUES ( ?q ) { ( ontology:Q502895 ) ( ontology:Q1969448 ) } . ?f rdf:type ?q } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { ?b property:P2439 resource:Q397 . { ?b rdf:type ?u . VALUES ( ?u ) { ( ontology:Q502895 ) ( ontology:Q1969448 ) } } } } . FILTER ( ?o > ?i ) }
English Spanish
English and Spanish are related to more number of people and terms than that language
English Spanish
action greater
action union
action find_reverse_tuple_counts
relation language
type language
type common name
action find_reverse_tuple_counts
relation language
type language
type term
action count
action filter_multi_types
action find_reverse
entity Latin
relation language
type common name
type term
[[{'concept': 'common name'}, {'concept': 'term'}], 'language', {'concept': 'language'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) ?t WHERE { VALUES ( ?q ) { ( ontology:common_name ) ( ontology:term ) } . ?f rdf:type ?q } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { ?b property:language resource:Latin . { ?b rdf:type ?u . VALUES ( ?u ) { ( ontology:common_name ) ( ontology:term ) } } } } . FILTER ( ?o > ?i ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1860 Q1321
P407
Q7725634
USER
Which literary works were done in those ones language ?
(c(Q7725634),P407,Q1860) (c(Q7725634),P407,Q1321)
action filter_type
action find_reverse
entity prev_answer
relation P407
type Q7725634
[{'concept': 'Q7725634'}, 'P407', 'Q1860'] [{'concept': 'Q7725634'}, 'P407', 'Q1321']
SELECT DISTINCT ?j WHERE { VALUES ( ?w ) { ( resource:Q1860 ) ( resource:Q1321 ) } . ?j property:P407 ?w . ?j rdf:type ontology:Q7725634 }
English Spanish
action filter_type
action find_reverse
entity prev_answer
relation language of work or name
type literary work
[{'concept': 'literary work'}, 'language of work or name', 'English'] [{'concept': 'literary work'}, 'language of work or name', 'Spanish']
SELECT DISTINCT ?j WHERE { VALUES ( ?w ) { ( resource:English ) ( resource:Spanish ) } . ?j property:language_of_work_or_name ?w . ?j rdf:type ontology:literary_work }
[]
literary work
Q22249625 Q4928860 Q380825
SYSTEM
At Memphis Station, Blue Bayou, Thriller
Q2679326 Q2260402 Q1921383 Q2257959 Q19048014 Q2027936 Q4068801 Q7721407 Q924657 Q21038194 Q11973189 Q3520554 Q1131761 Q1326000 Q22916092 Q5990361 Q923359 Q814212 Q25078106 Q1324384 Q1072741 Q27660414 Q1314091 Q232206 Q22336205 Q18928771 Q25078135 Q760350 Q18085203 Q7765262 Q5419457 Q2028257 Q7908800 Q19358345 Q633376 Q4463074 Q1137020 Q7785162 Q18922454 Q7749999 Q1187321 Q26270893 Q25558 Q1616910 Q21287676 Q21287672 Q17138567 Q21287668 Q6919622 Q889240 Q7334669 Q2476190 Q27037419 Q593978 Q2009848 Q1676224 Q20800508 Q25078036 Q19263052 Q21287627 Q380825 Q5856638 Q19242944 Q5028908 Q25078000 Q16996354 Q19091696 Q4018684 Q25078073 Q1575153 Q109026 Q4949773 Q21287682 Q25101409 Q21287992 Q650884 Q1165305 Q19103248 Q3501212 Q21283498 Q2866642 Q1828805 Q21438649 Q542497 Q642170 Q7334756 Q22607638 Q921458 Q1086652 Q7541463 Q1049271 Q3351931 Q19158918 Q4928860 Q15907412 Q16826455 Q938656 Q1628696 Q21287936 Q19362937 Q7990739 Q7971073 Q10518612 Q19507764 Q1146122 Q15272117 Q19081037 Q6946371 Q74038 Q7516463 Q21539855 Q210218 Q23726780 Q2525778 Q775791 Q19517346 Q7073385 Q21287883 Q25077971 Q25077973 Q25077972 Q3471801 Q22599681 Q25077961 Q1407640 Q19360901 Q22964724 Q1407276 Q1128775 Q23058769 Q7621111 Q1242262 Q167545 Q27210603 Q27210275 Q4929858 Q3045024 Q1535296 Q666856 Q21283228 Q5576668 Q21287809 Q10290000 Q21203631 Q17151241 Q6945619 Q7559085 Q18360321 Q7720088 Q1046717 Q22596013 Q11510350 Q9095908 Q19348230 Q1031911 Q7644424 Q22249625 Q4999494 Q20010984 Q19892044 Q4854600 Q118018 Q924657 Q20814951 Q232206 Q19411221 Q19555916 Q5351571 Q5636918 Q26833647 Q1449288 Q7971073 Q17320541 Q46205 Q6663009 Q15215652
(c(Q7725634),P407,Q1860) (c(Q7725634),P407,Q1321)
action filter_type
action find_reverse
entity prev_answer
relation P407
type Q7725634
[ANSWERS] were done in those ones language
[{'concept': 'Q7725634'}, 'P407', 'Q1860'] [{'concept': 'Q7725634'}, 'P407', 'Q1321']
SELECT DISTINCT ?j WHERE { VALUES ( ?w ) { ( resource:Q1860 ) ( resource:Q1321 ) } . ?j property:P407 ?w . ?j rdf:type ontology:Q7725634 }
White Light/White Heat Planet Caravan Music I Just Can't Wait to Be King Hospital Barge Auguries of Innocence Down by the Riverside The Carnival Is Over Puppet on a String Lines Inscribed upon a Cup Formed from a Skull Guldhornene The Deer's Cry White Christmas A Whole New World I Still Do If I Could Choose The Unforgiven Before I Forget The Only Way Out In My Life Childe Harold's Pilgrimage Circle of Life We Shall Overcome Zwei kleine Italiener Solstice Song One Thing I Should Have Done St. George and the Dragon And You and I Baptism The Song of the Shirt Excelsior Colors of the Wind Vainglory I'm Alive It's So Easy Trilogy of desire Erotica Thirteen Time to Shine The Man With the Hoe Only a Northern Song Waterloo Road Infinity Hey Bulldog The Flame of Sun My Salvation The Arrow and the Song I Feel the Rain The Forgotten Happy Xmas (War Is Over) Ring-A-Ding Girl Abide with Me PPAP (Pen-Pineapple-Apple-Pen) Sledgehammer Martha My Dear I'm the Man Hold Tight Smile This Time Show Me the Way Thriller The 2nd Law: Unsustainable Darkness (Byron) Can't Help Lovin' Dat Man Daddy's Home The Line Rain We Used to Be Friends Gunga Din Polly Circle of Life Boum-Badaboum Horizon They're moving Father's grave to build a sewer The Light of Dreams Blew Eye of the Tiger There was a young lady in white The Anthem The Dean's Answer to The Rebus Asimbonanga The Man I Love Authors Like a Virgin About a Girl Rings Around the Moon Columbus Odorono What's Another Year Slough Liar Cheek to Cheek Devil Pray Blue Bayou Bad Things Cherry Red One Uno Rivers of Time Playing with Numbers What'll I Do Warum nur, warum? Have You Met Miss Jones? Here for You I'm Beginning to See the Light I See Fire Joseph Warren My Shining Hour Diamonds Silver Threads and Golden Needles Boys like You Beat It Silent Night The Thing That Should Not Be Fly on the Wings of Love A Million Voices O vento mudou Run in a Way Who'll Be the Next in Line Bitter Pill Chelsea Smile How Does That Grab You? The wandering Girl Never Let You Down They Can't Take That Away from Me A Monster Like Me Sing It Away Hung Up Vogue Walk on Water Straighten Up and Fly Right Don't Get Around Much Anymore Happy Birthday to You Ye Sons of Freedom, Wake to Glory La Marseillaise (Patterson) Blue Sky What Now My Love These Boots Are Made for Walkin' I Will Always Love You A Rebus Godiva Try to Make It Your Own Give Me a Reason Wild Some Enchanted Evening My Head's in Mississippi Som en dröm Torsten the Bareback Saint The Bridge of Sighs Paint It Black The red Tree Get Lucky Whisper Love Injected Can You Feel the Love Tonight Supper Time At Memphis Station Burn Take Me With You All Over the World Bandido La Cucaracha Puppet on a String Hombres y documentos de la filosofía española Zwei kleine Italiener A las provincianas mártires Puestos están, frente a frente Matador Hablemos del amor La caza Oye Como Va Warum nur, warum? Técnica e ingeniería en España Cambalache Llámame Can't Remember to Forget You
At Memphis Station, Blue Bayou and Thriller were done in those ones language
At Memphis Station Blue Bayou Thriller
action filter_type
action find_reverse
entity prev_answer
relation language of work or name
type literary work
[{'concept': 'literary work'}, 'language of work or name', 'English'] [{'concept': 'literary work'}, 'language of work or name', 'Spanish']
SELECT DISTINCT ?j WHERE { VALUES ( ?w ) { ( resource:English ) ( resource:Spanish ) } . ?j property:language_of_work_or_name ?w . ?j rdf:type ontology:literary_work }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q22249625 Q4928860 Q380825
P407
Q34770
USER
What languages are those literary works in ?
(Q22249625,P407,c(Q34770)) (Q4928860,P407,c(Q34770)) (Q380825,P407,c(Q34770))
action filter_type
action find
entity prev_answer
relation P407
type Q34770
['Q22249625', 'P407', {'concept': 'Q34770'}] ['Q4928860', 'P407', {'concept': 'Q34770'}] ['Q380825', 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q34770 . ?j property:P407 ?l . VALUES ( ?j ) { ( resource:Q2679326 ) ( resource:Q2260402 ) ( resource:Q1921383 ) } }
At Memphis Station Blue Bayou Thriller
action filter_type
action find
entity prev_answer
relation language of work or name
type language
['At Memphis Station', 'language of work or name', {'concept': 'language'}] ['Blue Bayou', 'language of work or name', {'concept': 'language'}] ['Thriller', 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:language . ?j property:language_of_work_or_name ?l . VALUES ( ?j ) { ( resource:White_Light/White_Heat ) ( resource:Planet_Caravan ) ( resource:Music ) } }
[]
language
Q1860 Q1860 Q1860
SYSTEM
English
Q1860 Q652 Q1860 Q1860
(Q22249625,P407,c(Q34770)) (Q4928860,P407,c(Q34770)) (Q380825,P407,c(Q34770))
action filter_type
action find
entity prev_answer
relation P407
type Q34770
Those literary works are in the [ANSWER], [ANSWER] and [ANSWER]
['Q22249625', 'P407', {'concept': 'Q34770'}] ['Q4928860', 'P407', {'concept': 'Q34770'}] ['Q380825', 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q34770 . ?j property:P407 ?l . VALUES ( ?j ) { ( resource:Q2679326 ) ( resource:Q2260402 ) ( resource:Q1921383 ) } }
English Italian English English
Those literary works are in the English, English and English
English English English
action filter_type
action find
entity prev_answer
relation language of work or name
type language
['At Memphis Station', 'language of work or name', {'concept': 'language'}] ['Blue Bayou', 'language of work or name', {'concept': 'language'}] ['Thriller', 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:language . ?j property:language_of_work_or_name ?l . VALUES ( ?j ) { ( resource:White_Light/White_Heat ) ( resource:Planet_Caravan ) ( resource:Music ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1860
P103
Q6619679
USER
Who speaks English as his/her mother tongue ?
(c(Q6619679),P103,Q1860)
action filter_type
action find_reverse
entity Q1860
relation P103
type Q6619679
[{'concept': 'Q6619679'}, 'P103', 'Q1860']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q6619679 . ?c property:P103 resource:Q1860 }
English
action filter_type
action find_reverse
entity English
relation native language
type fictional humanoid
[{'concept': 'fictional humanoid'}, 'native language', 'English']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:fictional_humanoid . ?c property:native_language resource:English }
[]
fictional humanoid
Q249898 Q3639189 Q3898780
SYSTEM
David Palmer, Betty Draper, Peggy Olson
Q3808548 Q249898 Q1824049 Q2640712 Q3639189 Q3900793 Q3898780
(c(Q6619679),P103,Q1860)
action filter_type
action find_reverse
entity Q1860
relation P103
type Q6619679
[ANSWERS] speak English as his/her mother tongue
[{'concept': 'Q6619679'}, 'P103', 'Q1860']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q6619679 . ?c property:P103 resource:Q1860 }
Joan Holloway David Palmer Aki Ross Don Draper Betty Draper Pete Campbell Peggy Olson
David Palmer, Betty Draper and Peggy Olson speak English as his/her mother tongue
David Palmer Betty Draper Peggy Olson
action filter_type
action find_reverse
entity English
relation native language
type fictional humanoid
[{'concept': 'fictional humanoid'}, 'native language', 'English']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:fictional_humanoid . ?c property:native_language resource:English }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q249898 Q3639189 Q3898780
P21
Q290
USER
Which sexes do David Palmer, Betty Draper and Peggy Olson belong to ?
(Q249898,P21,c(Q290)) (Q3639189,P21,c(Q290)) (Q3898780,P21,c(Q290))
action union
action filter_type
action find
entity Q249898
relation P21
type Q290
action filter_type
action find
entity Q3639189
relation P21
type Q290
action filter_type
action find
entity Q3898780
relation P21
type Q290
['Q249898', 'P21', {'concept': 'Q290'}] ['Q3639189', 'P21', {'concept': 'Q290'}] ['Q3898780', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { { resource:Q249898 property:P21 ?c . ?c rdf:type ontology:Q290 } UNION { resource:Q3639189 property:P21 ?c . ?c rdf:type ontology:Q290 } }
David Palmer Betty Draper Peggy Olson
action union
action filter_type
action find
entity David Palmer
relation gender
type sex
action filter_type
action find
entity Betty Draper
relation gender
type sex
action filter_type
action find
entity Peggy Olson
relation gender
type sex
['David Palmer', 'gender', {'concept': 'sex'}] ['Betty Draper', 'gender', {'concept': 'sex'}] ['Peggy Olson', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { { resource:David_Palmer property:gender ?c . ?c rdf:type ontology:sex } UNION { resource:Betty_Draper property:gender ?c . ?c rdf:type ontology:sex } }
[]
sex
Q6581097 Q6581072 Q6581072
SYSTEM
male for 1st, female for 2nd, 3rd
Q6581097 Q6581072 Q6581072
(Q249898,P21,c(Q290)) (Q3639189,P21,c(Q290)) (Q3898780,P21,c(Q290))
action union
action filter_type
action find
entity Q249898
relation P21
type Q290
action filter_type
action find
entity Q3639189
relation P21
type Q290
action filter_type
action find
entity Q3898780
relation P21
type Q290
[ANSWERS]
['Q249898', 'P21', {'concept': 'Q290'}] ['Q3639189', 'P21', {'concept': 'Q290'}] ['Q3898780', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { { resource:Q249898 property:P21 ?c . ?c rdf:type ontology:Q290 } UNION { resource:Q3639189 property:P21 ?c . ?c rdf:type ontology:Q290 } }
male female female
David Palmer , Betty Draper and Peggy Olson belong to the male, female and female
male female female
action union
action filter_type
action find
entity David Palmer
relation gender
type sex
action filter_type
action find
entity Betty Draper
relation gender
type sex
action filter_type
action find
entity Peggy Olson
relation gender
type sex
['David Palmer', 'gender', {'concept': 'sex'}] ['Betty Draper', 'gender', {'concept': 'sex'}] ['Peggy Olson', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { { resource:David_Palmer property:gender ?c . ?c rdf:type ontology:sex } UNION { resource:Betty_Draper property:gender ?c . ?c rdf:type ontology:sex } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q249898
P108
Q6619679
USER
Which fictional humanoid is working for that one ?
(c(Q6619679),P108,Q249898)
action filter_type
action find_reverse
entity Q249898
relation P108
type Q6619679
[{'concept': 'Q6619679'}, 'P108', 'Q249898']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q6619679 . ?u property:P108 resource:Q249898 }
David Palmer
action filter_type
action find_reverse
entity David Palmer
relation employer
type fictional humanoid
[{'concept': 'fictional humanoid'}, 'employer', 'David Palmer']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:fictional_humanoid . ?u property:employer resource:David_Palmer }
[]
fictional humanoid
Clarification for simple ques.
Q249898
SYSTEM
Did you mean David Palmer ?
Q6581097 Q6581072 Q6581072
(c(Q6619679),P108,Q6581097) (c(Q6619679),P108,Q6581072) (c(Q6619679),P108,Q6581072)
[ANSWER]
[{'concept': 'Q6619679'}, 'P108', 'Q6581097'] [{'concept': 'Q6619679'}, 'P108', 'Q6581072'] [{'concept': 'Q6619679'}, 'P108', 'Q6581072']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q6619679 . ?u property:P108 resource:Q249898 }
male female female
Did you mean David Palmer ?
David Palmer
[{'concept': 'fictional humanoid'}, 'employer', 'male'] [{'concept': 'fictional humanoid'}, 'employer', 'female'] [{'concept': 'fictional humanoid'}, 'employer', 'female']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:fictional_humanoid . ?u property:employer resource:David_Palmer }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q6619679),P108,Q249898)
[{'concept': 'Q6619679'}, 'P108', 'Q249898']
[{'concept': 'fictional humanoid'}, 'employer', 'David Palmer']
[]
Q14921965
SYSTEM
Carl Webb
Q14921965
(c(Q6619679),P108,Q249898)
action filter_type
action find_reverse
entity Q249898
relation P108
type Q6619679
[ANSWER] is working for that one
[{'concept': 'Q6619679'}, 'P108', 'Q249898']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q6619679 . ?u property:P108 resource:Q249898 }
Carl Webb
Carl Webb is working for that one
Carl Webb
action filter_type
action find_reverse
entity David Palmer
relation employer
type fictional humanoid
[{'concept': 'fictional humanoid'}, 'employer', 'David Palmer']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:fictional_humanoid . ?u property:employer resource:David_Palmer }
[]