Simple Question (Direct)
Simple Question
Q3611614
P54
Q12973014
USER
What is Ali Farokhmanesh a member of ?
(Q3611614,P54,c(Q12973014))
action filter_type
action find
entity Q3611614
relation P54
type Q12973014
['Q3611614', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?i WHERE { resource:Q3611614 property:P54 ?i . ?i rdf:type ontology:Q12973014 }
Ali Farokhmanesh
action filter_type
action find
entity Ali Farokhmanesh
relation member of sports team
type sports team
['Ali Farokhmanesh', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?i WHERE { resource:Ali_Farokhmanesh property:member_of_sports_team ?i . ?i rdf:type ontology:sports_team }
[]
sports team
Q1777372
SYSTEM
WBC Raiffeisen Wels
Q1777372
(Q3611614,P54,c(Q12973014))
action filter_type
action find
entity Q3611614
relation P54
type Q12973014
Ali Farokhmanesh of the [ANSWER]
['Q3611614', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?i WHERE { resource:Q3611614 property:P54 ?i . ?i rdf:type ontology:Q12973014 }
WBC Raiffeisen Wels
Ali Farokhmanesh of the WBC Raiffeisen Wels
WBC Raiffeisen Wels
action filter_type
action find
entity Ali Farokhmanesh
relation member of sports team
type sports team
['Ali Farokhmanesh', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?i WHERE { resource:Ali_Farokhmanesh property:member_of_sports_team ?i . ?i rdf:type ontology:sports_team }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3611614
P641
Q349
USER
Which sport was that person a part of ?
(Q1777372,P641,c(Q349))
action filter_type
action find
entity Q3611614
relation P641
type Q349
['Q1777372', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q349 . resource:Q3611614 property:P641 ?a }
Ali Farokhmanesh
action filter_type
action find
entity Ali Farokhmanesh
relation sport
type sport
['WBC Raiffeisen Wels', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:sport . resource:Ali_Farokhmanesh property:sport ?a }
[]
sport
Q5372
SYSTEM
basketball
Q5372
(Q1777372,P641,c(Q349))
action filter_type
action find
entity Q3611614
relation P641
type Q349
The [ANSWER] was that person a part of
['Q1777372', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q349 . resource:Q3611614 property:P641 ?a }
basketball
The basketball was that person a part of
basketball
action filter_type
action find
entity Ali Farokhmanesh
relation sport
type sport
['WBC Raiffeisen Wels', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:sport . resource:Ali_Farokhmanesh property:sport ?a }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q372005 Q3611614
P641
Q349
USER
Or Al Wilson?
OR((Q3611614,P641,c(Q349)), (Q372005,P641,c(Q349)))
action filter_type
action union
action find
entity Q3611614
relation P641
action find
entity Q372005
relation P641
type Q349
{'OR': [['Q3611614', 'P641', {'concept': 'Q349'}], ['Q372005', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q3611614 property:P641 ?d } UNION { resource:Q372005 property:P641 ?d } } . ?d rdf:type ontology:Q349 }
Al Wilson Ali Farokhmanesh
action filter_type
action union
action find
entity Ali Farokhmanesh
relation sport
action find
entity Al Wilson
relation sport
type sport
{'OR': [['Ali Farokhmanesh', 'sport', {'concept': 'sport'}], ['Al Wilson', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Ali_Farokhmanesh property:sport ?d } UNION { resource:Al_Wilson property:sport ?d } } . ?d rdf:type ontology:sport }
[]
sport
Q41323 Q5372
SYSTEM
American football, basketball
Q41323 Q5372
OR((Q3611614,P641,c(Q349)), (Q372005,P641,c(Q349)))
action filter_type
action union
action find
entity Q3611614
relation P641
action find
entity Q372005
relation P641
type Q349
[ANSWERS]
{'OR': [['Q3611614', 'P641', {'concept': 'Q349'}], ['Q372005', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q3611614 property:P641 ?d } UNION { resource:Q372005 property:P641 ?d } } . ?d rdf:type ontology:Q349 }
American football basketball
American football basketball
action filter_type
action union
action find
entity Ali Farokhmanesh
relation sport
action find
entity Al Wilson
relation sport
type sport
{'OR': [['Ali Farokhmanesh', 'sport', {'concept': 'sport'}], ['Al Wilson', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Ali_Farokhmanesh property:sport ?d } UNION { resource:Al_Wilson property:sport ?d } } . ?d rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q41323 Q5372
P921
Q838948
USER
Which works of art have American football and basketball as their main topic ?
(c(Q838948),P921,Q41323) (c(Q838948),P921,Q5372)
action union
action filter_type
action find_reverse
entity Q41323
relation P921
type Q838948
action filter_type
action find_reverse
entity Q5372
relation P921
type Q838948
[{'concept': 'Q838948'}, 'P921', 'Q41323'] [{'concept': 'Q838948'}, 'P921', 'Q5372']
SELECT DISTINCT ?f WHERE { { ?f rdf:type ontology:Q838948 . ?f property:P921 resource:Q5372 } UNION { ?f property:P921 resource:Q41323 . ?f rdf:type ontology:Q838948 } }
American football basketball
action union
action filter_type
action find_reverse
entity American football
relation main subject
type work of art
action filter_type
action find_reverse
entity basketball
relation main subject
type work of art
[{'concept': 'work of art'}, 'main subject', 'American football'] [{'concept': 'work of art'}, 'main subject', 'basketball']
SELECT DISTINCT ?f WHERE { { ?f rdf:type ontology:work_of_art . ?f property:main_subject resource:basketball } UNION { ?f property:main_subject resource:American_football . ?f rdf:type ontology:work_of_art } }
[]
work of art
Q3808313 Q511914 Q1335591
SYSTEM
Jim Brown: All-American, Hoop Dreams, Undefeated
Q7962502 Q16250926 Q7193460 Q5676278 Q12126056 Q5689152 Q7737211 Q5212705 Q3808313 Q1335591 Q7858911 Q7832952 Q5619254 Q5656502 Q18149346 Q6565837 Q7268986 Q6554786 Q7564394 Q7734079 Q7739205 Q17078615 Q16253063 Q7798454 Q8073025 Q5123155 Q4889511 Q17144890 Q15052325 Q3862911 Q7991721 Q15052409 Q511914 Q7403349 Q16841922 Q5453095 Q6831722 Q7561874 Q7776617 Q7713482
(c(Q838948),P921,Q41323) (c(Q838948),P921,Q5372)
action union
action filter_type
action find_reverse
entity Q41323
relation P921
type Q838948
action filter_type
action find_reverse
entity Q5372
relation P921
type Q838948
[ANSWERS] have American football and basketball as their main topic
[{'concept': 'Q838948'}, 'P921', 'Q41323'] [{'concept': 'Q838948'}, 'P921', 'Q5372']
SELECT DISTINCT ?f WHERE { { ?f rdf:type ontology:Q838948 . ?f property:P921 resource:Q5372 } UNION { ?f property:P921 resource:Q41323 . ?f rdf:type ontology:Q838948 } }
Walking on Dead Fish Gridiron Gang Pigskin Champions Harvard Beats Yale 29-29 Marshall University: Ashes to Glory Head Games The Good Fight Damn Good Dog Jim Brown: All-American Undefeated Two Days in April Training Rules Gunnin' for That No. 1 Spot Hardwood Do You Believe in Magic The Iran Job Quantum Hoops Linsanity Soul in the Hole The First Basket The Heart of the Game The Rivalry: Red v. Blue Medora Through the Fire Zlatna levica, priča o Radivoju Koraću City Dump: The Story of the 1951 CCNY Basketball Scandal Benji On the Shoulders of Giants Long Shot: The Kevin Laue Story More Than a Game Whatever Happened to Micheal Ray? Prison Ball Hoop Dreams Salaam Dunk Hardwood Dreams First Ink Michael Jordan to the Max Sonicsgate The Year of the Yao The American Game
Jim Brown: All-American, Hoop Dreams and Undefeated have American football and basketball as their main topic
Jim Brown: All-American Hoop Dreams Undefeated
action union
action filter_type
action find_reverse
entity American football
relation main subject
type work of art
action filter_type
action find_reverse
entity basketball
relation main subject
type work of art
[{'concept': 'work of art'}, 'main subject', 'American football'] [{'concept': 'work of art'}, 'main subject', 'basketball']
SELECT DISTINCT ?f WHERE { { ?f rdf:type ontology:work_of_art . ?f property:main_subject resource:basketball } UNION { ?f property:main_subject resource:American_football . ?f rdf:type ontology:work_of_art } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1335591
P166
Q4220917
USER
What was awarded to that work of art ?
(Q1335591,P166,c(Q4220917))
action filter_type
action find
entity Q1335591
relation P166
type Q4220917
['Q1335591', 'P166', {'concept': 'Q4220917'}]
SELECT DISTINCT ?f WHERE { resource:Q1335591 property:P166 ?f . ?f rdf:type ontology:Q4220917 }
Undefeated
action filter_type
action find
entity Undefeated
relation award received
type film award
['Undefeated', 'award received', {'concept': 'film award'}]
SELECT DISTINCT ?f WHERE { resource:Undefeated property:award_received ?f . ?f rdf:type ontology:film_award }
[]
film award
Clarification for simple ques.
Q3808313
SYSTEM
Did you mean Jim Brown: All-American ?
Q3808313 Q511914 Q1335591
(Q3808313,P166,c(Q4220917)) (Q511914,P166,c(Q4220917)) (Q1335591,P166,c(Q4220917))
[ANSWER]
['Q3808313', 'P166', {'concept': 'Q4220917'}] ['Q511914', 'P166', {'concept': 'Q4220917'}] ['Q1335591', 'P166', {'concept': 'Q4220917'}]
SELECT DISTINCT ?f WHERE { resource:Q1335591 property:P166 ?f . ?f rdf:type ontology:Q4220917 }
Jim Brown: All-American Hoop Dreams Undefeated
Did you mean Jim Brown: All-American ?
Jim Brown: All-American
['Jim Brown: All-American', 'award received', {'concept': 'film award'}] ['Hoop Dreams', 'award received', {'concept': 'film award'}] ['Undefeated', 'award received', {'concept': 'film award'}]
SELECT DISTINCT ?f WHERE { resource:Undefeated property:award_received ?f . ?f rdf:type ontology:film_award }
[]
Simple Question (Coreferenced)
USER
No, I meant Undefeated. Could you tell me the answer for that?
(Q1335591,P166,c(Q4220917))
Q1335591
['Q1335591', 'P166', {'concept': 'Q4220917'}]
['Undefeated', 'award received', {'concept': 'film award'}]
[]
Q111332
SYSTEM
Academy Award for Best Documentary Feature
Q111332
(Q1335591,P166,c(Q4220917))
action filter_type
action find
entity Q1335591
relation P166
type Q4220917
The [ANSWER] was awarded to that work of art
['Q1335591', 'P166', {'concept': 'Q4220917'}]
SELECT DISTINCT ?f WHERE { resource:Q1335591 property:P166 ?f . ?f rdf:type ontology:Q4220917 }
Academy Award for Best Documentary Feature
The Academy Award for Best Documentary Feature was awarded to that work of art
Academy Award for Best Documentary Feature
action filter_type
action find
entity Undefeated
relation award received
type film award
['Undefeated', 'award received', {'concept': 'film award'}]
SELECT DISTINCT ?f WHERE { resource:Undefeated property:award_received ?f . ?f rdf:type ontology:film_award }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1467237
P1441
Q838948 Q3895768 Q502895
USER
Which works of art are more number of fictional locations and people present in than Ruby Cairo ?
(c(Q3895768)|c(Q502895),P1441,c(Q838948))
action greater
action union
action find_reverse_tuple_counts
relation P1441
type Q838948
type Q3895768
action find_reverse_tuple_counts
relation P1441
type Q838948
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q1467237
relation P1441
type Q3895768
type Q502895
[[{'concept': 'Q3895768'}, {'concept': 'Q502895'}], 'P1441', {'concept': 'Q838948'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) WHERE { { ?w rdf:type ?p . VALUES ( ?p ) { ( ontology:Q3895768 ) ( ontology:Q502895 ) } } . ?w property:P1441 resource:Q1467237 } } . FILTER ( ?j > ?i ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) ?a WHERE { ?b rdf:type ?q . VALUES ( ?q ) { ( ontology:Q3895768 ) ( ontology:Q502895 ) } } GROUP BY ?a } }
Ruby Cairo
action greater
action union
action find_reverse_tuple_counts
relation present in work
type work of art
type fictional location
action find_reverse_tuple_counts
relation present in work
type work of art
type common name
action count
action filter_multi_types
action find_reverse
entity Ruby Cairo
relation present in work
type fictional location
type common name
[[{'concept': 'fictional location'}, {'concept': 'common name'}], 'present in work', {'concept': 'work of art'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) WHERE { { ?w rdf:type ?p . VALUES ( ?p ) { ( ontology:fictional_location ) ( ontology:common_name ) } } . ?w property:present_in_work resource:Ruby_Cairo } } . FILTER ( ?j > ?i ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) ?a WHERE { ?b rdf:type ?q . VALUES ( ?q ) { ( ontology:fictional_location ) ( ontology:common_name ) } } GROUP BY ?a } }
[]
work of art fictional location common name
Q18407657 Q14171368 Q217020
SYSTEM
Captain America: Civil War, Avengers: Age of Ultron, Thor
Q3512046 Q6072886 Q3273477 Q384508 Q15043347 Q741878 Q18031184 Q1332299 Q20921603 Q1420651 Q1364029 Q17485699 Q748030 Q245227 Q14942871 Q18786473 Q217020 Q3031303 Q746733 Q167726 Q18067135 Q174385 Q14171368 Q1316253 Q18407657 Q7558541 Q1125566 Q590098 Q470665 Q318975 Q773293 Q15713892 Q833292 Q7768400 Q156519 Q1471230 Q567298
(c(Q3895768)|c(Q502895),P1441,c(Q838948))
action greater
action union
action find_reverse_tuple_counts
relation P1441
type Q838948
type Q3895768
action find_reverse_tuple_counts
relation P1441
type Q838948
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q1467237
relation P1441
type Q3895768
type Q502895
[ANSWERS] are more number of fictional locations and people present in than Ruby Cairo
[[{'concept': 'Q3895768'}, {'concept': 'Q502895'}], 'P1441', {'concept': 'Q838948'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) WHERE { { ?w rdf:type ?p . VALUES ( ?p ) { ( ontology:Q3895768 ) ( ontology:Q502895 ) } } . ?w property:P1441 resource:Q1467237 } } . FILTER ( ?j > ?i ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) ?a WHERE { ?b rdf:type ?q . VALUES ( ?q ) { ( ontology:Q3895768 ) ( ontology:Q502895 ) } } GROUP BY ?a } }
Jurassic World Perros callejeros Ma and Pa Kettle Las adolescentes Million Dollar Arm Good Morning, Vietnam The Finest Hours Pete's Dragon Queen of Katwe Tombstone Peter Pan Alice Through the Looking Glass The 13th Warrior The Prince of Egypt Exodus: Gods and Kings Pete's Dragon Thor The Kingdom of Solomon The Ten Commandments Jurassic Park Bridge of Spies Alice in Wonderland Avengers: Age of Ultron Solomon and Sheba Captain America: Civil War Solomon & Sheba Duck Soup Ultimate Avengers 2 Secretariat Atlantis: The Lost Empire The Bible: In the Beginning Pan Night of the Seagulls The Ten Commandments Around the World in 80 Days History of the World, Part I The Last Trapper
Captain America: Civil War, Avengers: Age of Ultron and Thor are more number of fictional locations and people present in than Ruby Cairo
Captain America: Civil War Avengers: Age of Ultron Thor
action greater
action union
action find_reverse_tuple_counts
relation present in work
type work of art
type fictional location
action find_reverse_tuple_counts
relation present in work
type work of art
type common name
action count
action filter_multi_types
action find_reverse
entity Ruby Cairo
relation present in work
type fictional location
type common name
[[{'concept': 'fictional location'}, {'concept': 'common name'}], 'present in work', {'concept': 'work of art'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) WHERE { { ?w rdf:type ?p . VALUES ( ?p ) { ( ontology:fictional_location ) ( ontology:common_name ) } } . ?w property:present_in_work resource:Ruby_Cairo } } . FILTER ( ?j > ?i ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) ?a WHERE { ?b rdf:type ?q . VALUES ( ?q ) { ( ontology:fictional_location ) ( ontology:common_name ) } } GROUP BY ?a } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q2364439
P1441
Q838948 Q3895768 Q502895
USER
And what about Big Top Pee-wee?
(c(Q3895768)|c(Q502895),P1441,c(Q838948))
action greater
action union
action find_reverse_tuple_counts
relation P1441
type Q838948
type Q3895768
action find_reverse_tuple_counts
relation P1441
type Q838948
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q2364439
relation P1441
type Q3895768
type Q502895
[[{'concept': 'Q3895768'}, {'concept': 'Q502895'}], 'P1441', {'concept': 'Q838948'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) WHERE { ?e property:P1441 resource:Q2364439 . { ?e rdf:type ?f . VALUES ( ?f ) { ( ontology:Q3895768 ) ( ontology:Q502895 ) } } } } . FILTER ( ?x > ?p ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) ?l WHERE { { ?a property:P1441 ?l . ?a rdf:type ontology:Q3895768 . ?l rdf:type ontology:Q838948 } UNION { ?a property:P1441 ?l . ?l rdf:type ontology:Q838948 . ?a rdf:type ontology:Q502895 } } GROUP BY ?l } }
Big Top Pee-wee
action greater
action union
action find_reverse_tuple_counts
relation present in work
type work of art
type fictional location
action find_reverse_tuple_counts
relation present in work
type work of art
type common name
action count
action filter_multi_types
action find_reverse
entity Big Top Pee-wee
relation present in work
type fictional location
type common name
[[{'concept': 'fictional location'}, {'concept': 'common name'}], 'present in work', {'concept': 'work of art'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) WHERE { ?e property:present_in_work resource:Big_Top_Pee-wee . { ?e rdf:type ?f . VALUES ( ?f ) { ( ontology:fictional_location ) ( ontology:common_name ) } } } } . FILTER ( ?x > ?p ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) ?l WHERE { { ?a property:present_in_work ?l . ?a rdf:type ontology:fictional_location . ?l rdf:type ontology:work_of_art } UNION { ?a property:present_in_work ?l . ?l rdf:type ontology:work_of_art . ?a rdf:type ontology:common_name } } GROUP BY ?l } }
[]
work of art fictional location common name
Q18407657 Q14171368 Q217020
SYSTEM
Captain America: Civil War, Avengers: Age of Ultron, Thor
Q3512046 Q6072886 Q3273477 Q384508 Q15043347 Q741878 Q18031184 Q1332299 Q20921603 Q1420651 Q1364029 Q17485699 Q748030 Q245227 Q14942871 Q18786473 Q217020 Q3031303 Q746733 Q167726 Q18067135 Q174385 Q14171368 Q1316253 Q18407657 Q7558541 Q1125566 Q590098 Q470665 Q318975 Q773293 Q15713892 Q833292 Q7768400 Q156519 Q1471230 Q567298
(c(Q3895768)|c(Q502895),P1441,c(Q838948))
action greater
action union
action find_reverse_tuple_counts
relation P1441
type Q838948
type Q3895768
action find_reverse_tuple_counts
relation P1441
type Q838948
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q2364439
relation P1441
type Q3895768
type Q502895
[ANSWERS]
[[{'concept': 'Q3895768'}, {'concept': 'Q502895'}], 'P1441', {'concept': 'Q838948'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) WHERE { ?e property:P1441 resource:Q2364439 . { ?e rdf:type ?f . VALUES ( ?f ) { ( ontology:Q3895768 ) ( ontology:Q502895 ) } } } } . FILTER ( ?x > ?p ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) ?l WHERE { { ?a property:P1441 ?l . ?a rdf:type ontology:Q3895768 . ?l rdf:type ontology:Q838948 } UNION { ?a property:P1441 ?l . ?l rdf:type ontology:Q838948 . ?a rdf:type ontology:Q502895 } } GROUP BY ?l } }
Jurassic World Perros callejeros Ma and Pa Kettle Las adolescentes Million Dollar Arm Good Morning, Vietnam The Finest Hours Pete's Dragon Queen of Katwe Tombstone Peter Pan Alice Through the Looking Glass The 13th Warrior The Prince of Egypt Exodus: Gods and Kings Pete's Dragon Thor The Kingdom of Solomon The Ten Commandments Jurassic Park Bridge of Spies Alice in Wonderland Avengers: Age of Ultron Solomon and Sheba Captain America: Civil War Solomon & Sheba Duck Soup Ultimate Avengers 2 Secretariat Atlantis: The Lost Empire The Bible: In the Beginning Pan Night of the Seagulls The Ten Commandments Around the World in 80 Days History of the World, Part I The Last Trapper
Captain America: Civil War Avengers: Age of Ultron Thor
action greater
action union
action find_reverse_tuple_counts
relation present in work
type work of art
type fictional location
action find_reverse_tuple_counts
relation present in work
type work of art
type common name
action count
action filter_multi_types
action find_reverse
entity Big Top Pee-wee
relation present in work
type fictional location
type common name
[[{'concept': 'fictional location'}, {'concept': 'common name'}], 'present in work', {'concept': 'work of art'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) WHERE { ?e property:present_in_work resource:Big_Top_Pee-wee . { ?e rdf:type ?f . VALUES ( ?f ) { ( ontology:fictional_location ) ( ontology:common_name ) } } } } . FILTER ( ?x > ?p ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) ?l WHERE { { ?a property:present_in_work ?l . ?a rdf:type ontology:fictional_location . ?l rdf:type ontology:work_of_art } UNION { ?a property:present_in_work ?l . ?l rdf:type ontology:work_of_art . ?a rdf:type ontology:common_name } } GROUP BY ?l } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q217020
P462
Q1075
USER
Which color is associated with that work of art ?
(Q217020,P462,c(Q1075))
action filter_type
action find
entity Q217020
relation P462
type Q1075
['Q217020', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?b WHERE { resource:Q217020 property:P462 ?b . ?b rdf:type ontology:Q1075 }
Thor
action filter_type
action find
entity Thor
relation color
type color
['Thor', 'color', {'concept': 'color'}]
SELECT DISTINCT ?b WHERE { resource:Thor property:color ?b . ?b rdf:type ontology:color }
[]
color
Clarification for simple ques.
Q18407657
SYSTEM
Did you mean Captain America: Civil War ?
Q18407657 Q14171368 Q217020
(Q18407657,P462,c(Q1075)) (Q14171368,P462,c(Q1075)) (Q217020,P462,c(Q1075))
[ANSWER]
['Q18407657', 'P462', {'concept': 'Q1075'}] ['Q14171368', 'P462', {'concept': 'Q1075'}] ['Q217020', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?b WHERE { resource:Q217020 property:P462 ?b . ?b rdf:type ontology:Q1075 }
Captain America: Civil War Avengers: Age of Ultron Thor
Did you mean Captain America: Civil War ?
Captain America: Civil War
['Captain America: Civil War', 'color', {'concept': 'color'}] ['Avengers: Age of Ultron', 'color', {'concept': 'color'}] ['Thor', 'color', {'concept': 'color'}]
SELECT DISTINCT ?b WHERE { resource:Thor property:color ?b . ?b rdf:type ontology:color }
[]
Simple Question (Coreferenced)
USER
No, I meant Thor. Could you tell me the answer for that?
(Q217020,P462,c(Q1075))
Q217020
['Q217020', 'P462', {'concept': 'Q1075'}]
['Thor', 'color', {'concept': 'color'}]
[]
Q22006653
SYSTEM
color
Q22006653
(Q217020,P462,c(Q1075))
action filter_type
action find
entity Q217020
relation P462
type Q1075
The [ANSWER] is associated with that work of art
['Q217020', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?b WHERE { resource:Q217020 property:P462 ?b . ?b rdf:type ontology:Q1075 }
color
The color is associated with that work of art
color
action filter_type
action find
entity Thor
relation color
type color
['Thor', 'color', {'concept': 'color'}]
SELECT DISTINCT ?b WHERE { resource:Thor property:color ?b . ?b rdf:type ontology:color }
[]