Simple Question (Direct)
Simple Question
Q7719308
P57
Q502895
USER
Who was the director of The Book of Stars ?
(Q7719308,P57,c(Q502895))
action filter_type
action find
entity Q7719308
relation P57
type Q502895
['Q7719308', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . resource:Q7719308 property:P57 ?i }
The Book of Stars
action filter_type
action find
entity The Book of Stars
relation director
type common name
['The Book of Stars', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . resource:The_Book_of_Stars property:director ?i }
[]
common name
Q3308384
SYSTEM
Michael Miner
Q3308384
(Q7719308,P57,c(Q502895))
action filter_type
action find
entity Q7719308
relation P57
type Q502895
The director of The Book of Stars was John [ANSWER]
['Q7719308', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . resource:Q7719308 property:P57 ?i }
Michael Miner
The director of The Book of Stars was John Michael Miner
Michael Miner
action filter_type
action find
entity The Book of Stars
relation director
type common name
['The Book of Stars', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . resource:The_Book_of_Stars property:director ?i }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7719308
P161
Q502895
USER
Which people are in The Book of Stars ?
(Q7719308,P161,c(Q502895))
action filter_type
action find
entity Q7719308
relation P161
type Q502895
['Q7719308', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q502895 . resource:Q7719308 property:P161 ?f }
The Book of Stars
action filter_type
action find
entity The Book of Stars
relation cast member
type common name
['The Book of Stars', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:common_name . resource:The_Book_of_Stars property:cast_member ?f }
[]
common name
Q233428 Q233368
SYSTEM
Mary Stuart Masterson, Jena Malone
Q233428 Q233368
(Q7719308,P161,c(Q502895))
action filter_type
action find
entity Q7719308
relation P161
type Q502895
[ANSWERS] are in The Book of Stars
['Q7719308', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q502895 . resource:Q7719308 property:P161 ?f }
Mary Stuart Masterson Jena Malone
Mary Stuart Masterson and Jena Malone are in The Book of Stars
Mary Stuart Masterson Jena Malone
action filter_type
action find
entity The Book of Stars
relation cast member
type common name
['The Book of Stars', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:common_name . resource:The_Book_of_Stars property:cast_member ?f }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q233428 Q233368
P21
Q290
USER
Which sexes do those people have ?
(Q233428,P21,c(Q290)) (Q233368,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
['Q233428', 'P21', {'concept': 'Q290'}] ['Q233368', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { ?d property:P21 ?s . VALUES ( ?d ) { ( resource:Q233428 ) ( resource:Q233368 ) } . ?s rdf:type ontology:Q290 }
Mary Stuart Masterson Jena Malone
action filter_type
action find
entity prev_answer
relation gender
type sex
['Mary Stuart Masterson', 'gender', {'concept': 'sex'}] ['Jena Malone', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { ?d property:gender ?s . VALUES ( ?d ) { ( resource:Mary_Stuart_Masterson ) ( resource:Jena_Malone ) } . ?s rdf:type ontology:sex }
[]
sex
Q6581072 Q6581072
SYSTEM
female
Q6581072 Q6581072
(Q233428,P21,c(Q290)) (Q233368,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
Those people have a [ANSWER] and [ANSWER]
['Q233428', 'P21', {'concept': 'Q290'}] ['Q233368', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { ?d property:P21 ?s . VALUES ( ?d ) { ( resource:Q233428 ) ( resource:Q233368 ) } . ?s rdf:type ontology:Q290 }
female female
Those people have a female and female
female female
action filter_type
action find
entity prev_answer
relation gender
type sex
['Mary Stuart Masterson', 'gender', {'concept': 'sex'}] ['Jena Malone', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { ?d property:gender ?s . VALUES ( ?d ) { ( resource:Mary_Stuart_Masterson ) ( resource:Jena_Malone ) } . ?s rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7719308
P136
Q1792379
USER
What can be considered as category for The Book of Stars ?
(Q7719308,P136,c(Q1792379))
action filter_type
action find
entity Q7719308
relation P136
type Q1792379
['Q7719308', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q1792379 . resource:Q7719308 property:P136 ?j }
The Book of Stars
action filter_type
action find
entity The Book of Stars
relation genre
type art genre
['The Book of Stars', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:art_genre . resource:The_Book_of_Stars property:genre ?j }
[]
art genre
Q2975633
SYSTEM
coming-of-age story
Q2975633
(Q7719308,P136,c(Q1792379))
action filter_type
action find
entity Q7719308
relation P136
type Q1792379
The [ANSWER] can be considered as category for The Book of Stars
['Q7719308', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q1792379 . resource:Q7719308 property:P136 ?j }
coming-of-age story
The coming-of-age story can be considered as category for The Book of Stars
coming-of-age story
action filter_type
action find
entity The Book of Stars
relation genre
type art genre
['The Book of Stars', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:art_genre . resource:The_Book_of_Stars property:genre ?j }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P136
Q11424 Q1914636
USER
How many films and activities have that art genre as genre ?
(c(Q11424),P136,Q2975633) (c(Q1914636),P136,Q2975633) (c(Q11424),P136,Q2975633) (c(Q1914636),P136,Q2975633)
action count
action union
action filter_type
action find_reverse
entity Q2975633
relation P136
type Q11424
action filter_type
action find_reverse
entity Q2975633
relation P136
type Q1914636
[{'concept': 'Q11424'}, 'P136', 'Q2975633'] [{'concept': 'Q1914636'}, 'P136', 'Q2975633'] [{'concept': 'Q11424'}, 'P136', 'Q2975633'] [{'concept': 'Q1914636'}, 'P136', 'Q2975633']
SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) WHERE { { ?l property:P136 resource:Q2975633 . ?l rdf:type ontology:Q11424 } UNION { ?l rdf:type ontology:Q1914636 . ?l property:P136 resource:Q2975633 } }
action count
action union
action filter_type
action find_reverse
entity coming-of-age story
relation genre
type film
action filter_type
action find_reverse
entity coming-of-age story
relation genre
type activity
[{'concept': 'film'}, 'genre', 'coming-of-age story'] [{'concept': 'activity'}, 'genre', 'coming-of-age story'] [{'concept': 'film'}, 'genre', 'coming-of-age story'] [{'concept': 'activity'}, 'genre', 'coming-of-age story']
SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) WHERE { { ?l property:genre resource:coming-of-age_story . ?l rdf:type ontology:film } UNION { ?l rdf:type ontology:activity . ?l property:genre resource:coming-of-age_story } }
[]
film activity
SYSTEM
11 films and 1 activities
Q930134 Q45847 Q39722 Q43051 Q329316 Q40302 Q202371 Q4341553 Q14433754 Q204662 Q189875 Q192403
(c(Q11424),P136,Q2975633) (c(Q1914636),P136,Q2975633) (c(Q11424),P136,Q2975633) (c(Q1914636),P136,Q2975633)
action count
action union
action filter_type
action find_reverse
entity Q2975633
relation P136
type Q11424
action filter_type
action find_reverse
entity Q2975633
relation P136
type Q1914636
[ANSWER]
[{'concept': 'Q11424'}, 'P136', 'Q2975633'] [{'concept': 'Q1914636'}, 'P136', 'Q2975633'] [{'concept': 'Q11424'}, 'P136', 'Q2975633'] [{'concept': 'Q1914636'}, 'P136', 'Q2975633']
SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) WHERE { { ?l property:P136 resource:Q2975633 . ?l rdf:type ontology:Q11424 } UNION { ?l rdf:type ontology:Q1914636 . ?l property:P136 resource:Q2975633 } }
Cats Don't Dance The Nutcracker Prince The Rescuers Bambi The Black Cauldron The Fox and the Hound The Rescuers Down Under Pinocchio Dear Eleanor The Sword in the Stone Alice in Wonderland The Land Before Time
11 films and 1 activities
action count
action union
action filter_type
action find_reverse
entity coming-of-age story
relation genre
type film
action filter_type
action find_reverse
entity coming-of-age story
relation genre
type activity
[{'concept': 'film'}, 'genre', 'coming-of-age story'] [{'concept': 'activity'}, 'genre', 'coming-of-age story'] [{'concept': 'film'}, 'genre', 'coming-of-age story'] [{'concept': 'activity'}, 'genre', 'coming-of-age story']
SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) WHERE { { ?l property:genre resource:coming-of-age_story . ?l rdf:type ontology:film } UNION { ?l rdf:type ontology:activity . ?l property:genre resource:coming-of-age_story } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q9764
P180
Q838948 Q11060274 Q838948
USER
Which works of art are depicted in less number of prints and works of art than flamenco ?
(c(Q11060274)|c(Q838948),P180,c(Q838948))
action less
action union
action find_reverse_tuple_counts
relation P180
type Q838948
type Q11060274
action find_reverse_tuple_counts
relation P180
type Q838948
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q9764
relation P180
type Q11060274
type Q838948
[[{'concept': 'Q11060274'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q838948'}]
SELECT DISTINCT ?o WHERE { FILTER ( ?c < ?w ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) WHERE { { VALUES ( ?a ) { ( ontology:Q11060274 ) ( ontology:Q838948 ) } . ?g rdf:type ?a } . ?g property:P180 resource:Q9764 } } . { SELECT DISTINCT ?o ( COUNT ( ?b ) AS ?c ) WHERE { ?b rdf:type ?f . VALUES ( ?f ) { ( ontology:Q11060274 ) ( ontology:Q838948 ) } } GROUP BY ?o } }
flamenco
action less
action union
action find_reverse_tuple_counts
relation depicts
type work of art
type print
action find_reverse_tuple_counts
relation depicts
type work of art
type work of art
action count
action filter_multi_types
action find_reverse
entity flamenco
relation depicts
type print
type work of art
[[{'concept': 'print'}, {'concept': 'work of art'}], 'depicts', {'concept': 'work of art'}]
SELECT DISTINCT ?o WHERE { FILTER ( ?c < ?w ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) WHERE { { VALUES ( ?a ) { ( ontology:print ) ( ontology:work_of_art ) } . ?g rdf:type ?a } . ?g property:depicts resource:flamenco } } . { SELECT DISTINCT ?o ( COUNT ( ?b ) AS ?c ) WHERE { ?b rdf:type ?f . VALUES ( ?f ) { ( ontology:print ) ( ontology:work_of_art ) } } GROUP BY ?o } }
[]
work of art print work of art
Q17305020 Q734834 Q465762
SYSTEM
Tanagra, Ghent Altarpiece, Laocoön and His Sons
Q86440 Q27478577 Q7294420 Q23714516 Q216402 Q18147625 Q18147624 Q20176696 Q1111051 Q846870 Q21375954 Q27478544 Q766487 Q232042 Q27462703 Q3545179 Q221211 Q2439030 Q170980 Q333009 Q750209 Q19969041 Q734834 Q3015661 Q473237 Q20631770 Q267971 Q831869 Q2535008 Q17172602 Q93184 Q177600 Q221323 Q2111434 Q1230963 Q185382 Q11060274 Q3424549 Q1779386 Q1395302 Q826635 Q2070542 Q733893 Q185392 Q619135 Q294001 Q848790 Q3731233 Q17275826 Q215911 Q476968 Q1350279 Q3305213 Q17305020 Q280336 Q652011 Q16332506 Q2963060 Q907387 Q374591 Q959962 Q6555477 Q125191 Q130958 Q371752 Q203443 Q201022 Q774967 Q945850 Q216185 Q79218 Q1989744 Q465762 Q7539835 Q745783 Q183272 Q3918710 Q599302 Q208440 Q1192229 Q21743265
(c(Q11060274)|c(Q838948),P180,c(Q838948))
action less
action union
action find_reverse_tuple_counts
relation P180
type Q838948
type Q11060274
action find_reverse_tuple_counts
relation P180
type Q838948
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q9764
relation P180
type Q11060274
type Q838948
[ANSWERS] are depicted in less number of prints and works of art than flamenco
[[{'concept': 'Q11060274'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q838948'}]
SELECT DISTINCT ?o WHERE { FILTER ( ?c < ?w ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) WHERE { { VALUES ( ?a ) { ( ontology:Q11060274 ) ( ontology:Q838948 ) } . ?g rdf:type ?a } . ?g property:P180 resource:Q9764 } } . { SELECT DISTINCT ?o ( COUNT ( ?b ) AS ?c ) WHERE { ?b rdf:type ?f . VALUES ( ?f ) { ( ontology:Q11060274 ) ( ontology:Q838948 ) } } GROUP BY ?o } }
The Tempest Artemis of Ephesus Raqs sharqi equestrian statue of Louis XIII Winged Victory of Samothrace Farnese Flora Farnese Hercules Sanford Robinson Gifford Colonne Vendôme Prometheus Bound Allegory of the city of Paris Silenus holding the child Dionysos David The Two Gentlemen of Verona Satyr playing flute Rape of the Sabine Women Twelfth Night St. Peter's Baldacchino obelisk can-can Colossi of Memnon Allegory of the Seine River Ghent Altarpiece erotic dancing Statue of Bartolomeo Colleoni equestrian statue of George Washington Triton Fountain oenochoe Neptune and Triton monumental cross drawing stick figure golden calf pendant Under Western Stars Trevi Fountain print Frederik V on Horseback Menat One True Thing Elephant and Obelisk Hermes Chair of Saint Peter Borghese Gladiator Apollo Belvedere Oedipus at Colonus Dying Gaul Heracles and Nessus Portrait of Rembrandt with a gorget serenade krater pyxis painting Tanagra partner dance Richard III Ploughman Marly horses Equestrian Statue of Marcus Aurelius Farnese Hercules diagram Lion of Venice photograph The Great Sphinx calvary headstone folk dance Venus de' Medici Apollo and Daphne Charing Cross triptych Moses Laocoön and His Sons Sleeping Ariadne hydria frieze Wrestlers Column of Antoninus Pius chess piece The Original Sin Torso in Metal from Rock Drill
Tanagra, Ghent Altarpiece and Laocoön and His Sons are depicted in less number of prints and works of art than flamenco
Tanagra Ghent Altarpiece Laocoön and His Sons
action less
action union
action find_reverse_tuple_counts
relation depicts
type work of art
type print
action find_reverse_tuple_counts
relation depicts
type work of art
type work of art
action count
action filter_multi_types
action find_reverse
entity flamenco
relation depicts
type print
type work of art
[[{'concept': 'print'}, {'concept': 'work of art'}], 'depicts', {'concept': 'work of art'}]
SELECT DISTINCT ?o WHERE { FILTER ( ?c < ?w ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) WHERE { { VALUES ( ?a ) { ( ontology:print ) ( ontology:work_of_art ) } . ?g rdf:type ?a } . ?g property:depicts resource:flamenco } } . { SELECT DISTINCT ?o ( COUNT ( ?b ) AS ?c ) WHERE { ?b rdf:type ?f . VALUES ( ?f ) { ( ontology:print ) ( ontology:work_of_art ) } } GROUP BY ?o } }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P136
Q1792379 Q483394
USER
How many art genres or genres can be considered as genre of that work of art ?
(Q465762,P136,c(Q1792379)) (Q465762,P136,c(Q483394)) (Q17305020,P136,c(Q1792379)) (Q17305020,P136,c(Q483394)) (Q734834,P136,c(Q1792379)) (Q734834,P136,c(Q483394)) (Q465762,P136,c(Q1792379)) (Q465762,P136,c(Q483394))
['Q465762', 'P136', {'concept': 'Q1792379'}] ['Q465762', 'P136', {'concept': 'Q483394'}] ['Q17305020', 'P136', {'concept': 'Q1792379'}] ['Q17305020', 'P136', {'concept': 'Q483394'}] ['Q734834', 'P136', {'concept': 'Q1792379'}] ['Q734834', 'P136', {'concept': 'Q483394'}] ['Q465762', 'P136', {'concept': 'Q1792379'}] ['Q465762', 'P136', {'concept': 'Q483394'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q465762 property:Q483394 ?z } UNION { resource:Q465762 property:Q483394 ?y } UNION { resource:Q20488985 property:Q483394 ?z } UNION { resource:Q20488985 property:Q483394 ?y } UNION { resource:Q734834 property:Q483394 ?z } UNION { resource:Q734834 property:Q483394 ?y } UNION { resource:Q465762 property:Q483394 ?z } UNION { resource:Q465762 property:Q483394 ?y } } . ?z rdf:type ontology:Q1792379 . ?y rdf:type ontology:Q483394 }
['Laocoön and His Sons', 'genre', {'concept': 'art genre'}] ['Laocoön and His Sons', 'genre', {'concept': 'genre'}] ['Tanagra', 'genre', {'concept': 'art genre'}] ['Tanagra', 'genre', {'concept': 'genre'}] ['Ghent Altarpiece', 'genre', {'concept': 'art genre'}] ['Ghent Altarpiece', 'genre', {'concept': 'genre'}] ['Laocoön and His Sons', 'genre', {'concept': 'art genre'}] ['Laocoön and His Sons', 'genre', {'concept': 'genre'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Laocoön_and_His_Sons property:genre ?z } UNION { resource:Laocoön_and_His_Sons property:genre ?y } UNION { resource:Tanagra property:genre ?z } UNION { resource:Tanagra property:genre ?y } UNION { resource:Ghent_Altarpiece property:genre ?z } UNION { resource:Ghent_Altarpiece property:genre ?y } UNION { resource:Laocoön_and_His_Sons property:genre ?z } UNION { resource:Laocoön_and_His_Sons property:genre ?y } } . ?z rdf:type ontology:art_genre . ?y rdf:type ontology:genre }
[]
art genre genre
Quantitative|Count|Mult. entity type|Clarification
Q734834
SYSTEM
Did you mean Ghent Altarpiece ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q465762 property:Q483394 ?z } UNION { resource:Q465762 property:Q483394 ?y } UNION { resource:Q20488985 property:Q483394 ?z } UNION { resource:Q20488985 property:Q483394 ?y } UNION { resource:Q734834 property:Q483394 ?z } UNION { resource:Q734834 property:Q483394 ?y } UNION { resource:Q465762 property:Q483394 ?z } UNION { resource:Q465762 property:Q483394 ?y } } . ?z rdf:type ontology:Q1792379 . ?y rdf:type ontology:Q483394 }
Did you mean Ghent Altarpiece ?
Ghent Altarpiece
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Laocoön_and_His_Sons property:genre ?z } UNION { resource:Laocoön_and_His_Sons property:genre ?y } UNION { resource:Tanagra property:genre ?z } UNION { resource:Tanagra property:genre ?y } UNION { resource:Ghent_Altarpiece property:genre ?z } UNION { resource:Ghent_Altarpiece property:genre ?y } UNION { resource:Laocoön_and_His_Sons property:genre ?z } UNION { resource:Laocoön_and_His_Sons property:genre ?y } } . ?z rdf:type ontology:art_genre . ?y rdf:type ontology:genre }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Laocoön and His Sons. Could you tell me the answer for that?
(Q465762,P136,c(Q1792379)) (Q465762,P136,c(Q483394)) (Q17305020,P136,c(Q1792379)) (Q17305020,P136,c(Q483394)) (Q734834,P136,c(Q1792379)) (Q734834,P136,c(Q483394)) (Q465762,P136,c(Q1792379)) (Q465762,P136,c(Q483394))
Q465762
['Q465762', 'P136', {'concept': 'Q1792379'}] ['Q465762', 'P136', {'concept': 'Q483394'}] ['Q17305020', 'P136', {'concept': 'Q1792379'}] ['Q17305020', 'P136', {'concept': 'Q483394'}] ['Q734834', 'P136', {'concept': 'Q1792379'}] ['Q734834', 'P136', {'concept': 'Q483394'}] ['Q465762', 'P136', {'concept': 'Q1792379'}] ['Q465762', 'P136', {'concept': 'Q483394'}]
['Laocoön and His Sons', 'genre', {'concept': 'art genre'}] ['Laocoön and His Sons', 'genre', {'concept': 'genre'}] ['Tanagra', 'genre', {'concept': 'art genre'}] ['Tanagra', 'genre', {'concept': 'genre'}] ['Ghent Altarpiece', 'genre', {'concept': 'art genre'}] ['Ghent Altarpiece', 'genre', {'concept': 'genre'}] ['Laocoön and His Sons', 'genre', {'concept': 'art genre'}] ['Laocoön and His Sons', 'genre', {'concept': 'genre'}]
[]
SYSTEM
3
Q3374376 Q2334148 Q40446
(Q465762,P136,c(Q1792379)) (Q465762,P136,c(Q483394)) (Q17305020,P136,c(Q1792379)) (Q17305020,P136,c(Q483394)) (Q734834,P136,c(Q1792379)) (Q734834,P136,c(Q483394)) (Q465762,P136,c(Q1792379)) (Q465762,P136,c(Q483394))
[ANSWER]
['Q465762', 'P136', {'concept': 'Q1792379'}] ['Q465762', 'P136', {'concept': 'Q483394'}] ['Q17305020', 'P136', {'concept': 'Q1792379'}] ['Q17305020', 'P136', {'concept': 'Q483394'}] ['Q734834', 'P136', {'concept': 'Q1792379'}] ['Q734834', 'P136', {'concept': 'Q483394'}] ['Q465762', 'P136', {'concept': 'Q1792379'}] ['Q465762', 'P136', {'concept': 'Q483394'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q465762 property:Q483394 ?z } UNION { resource:Q465762 property:Q483394 ?y } UNION { resource:Q20488985 property:Q483394 ?z } UNION { resource:Q20488985 property:Q483394 ?y } UNION { resource:Q734834 property:Q483394 ?z } UNION { resource:Q734834 property:Q483394 ?y } UNION { resource:Q465762 property:Q483394 ?z } UNION { resource:Q465762 property:Q483394 ?y } } . ?z rdf:type ontology:Q1792379 . ?y rdf:type ontology:Q483394 }
mythological painting sculptural group nude
3
['Laocoön and His Sons', 'genre', {'concept': 'art genre'}] ['Laocoön and His Sons', 'genre', {'concept': 'genre'}] ['Tanagra', 'genre', {'concept': 'art genre'}] ['Tanagra', 'genre', {'concept': 'genre'}] ['Ghent Altarpiece', 'genre', {'concept': 'art genre'}] ['Ghent Altarpiece', 'genre', {'concept': 'genre'}] ['Laocoön and His Sons', 'genre', {'concept': 'art genre'}] ['Laocoön and His Sons', 'genre', {'concept': 'genre'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Laocoön_and_His_Sons property:genre ?z } UNION { resource:Laocoön_and_His_Sons property:genre ?y } UNION { resource:Tanagra property:genre ?z } UNION { resource:Tanagra property:genre ?y } UNION { resource:Ghent_Altarpiece property:genre ?z } UNION { resource:Ghent_Altarpiece property:genre ?y } UNION { resource:Laocoön_and_His_Sons property:genre ?z } UNION { resource:Laocoön_and_His_Sons property:genre ?y } } . ?z rdf:type ontology:art_genre . ?y rdf:type ontology:genre }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q734834
P186
Q214609 Q16686022
USER
How many materials or natural physical objects are used to construct Ghent Altarpiece ?
(Q734834,P186,c(Q214609)) (Q734834,P186,c(Q16686022))
action count
action union
action filter_type
action find
entity Q734834
relation P186
type Q214609
action filter_type
action find
entity Q734834
relation P186
type Q16686022
['Q734834', 'P186', {'concept': 'Q214609'}] ['Q734834', 'P186', {'concept': 'Q16686022'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { VALUES ( ?x ) { ( ontology:Q214609 ) ( ontology:Q16686022 ) } . ?v rdf:type ?x }
Ghent Altarpiece
action count
action union
action filter_type
action find
entity Ghent Altarpiece
relation material used
type material
action filter_type
action find
entity Ghent Altarpiece
relation material used
type natural physical object
['Ghent Altarpiece', 'material used', {'concept': 'material'}] ['Ghent Altarpiece', 'material used', {'concept': 'natural physical object'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { VALUES ( ?x ) { ( ontology:material ) ( ontology:natural_physical_object ) } . ?v rdf:type ?x }
[]
material natural physical object
SYSTEM
2
Q296955 Q287
(Q734834,P186,c(Q214609)) (Q734834,P186,c(Q16686022))
action count
action union
action filter_type
action find
entity Q734834
relation P186
type Q214609
action filter_type
action find
entity Q734834
relation P186
type Q16686022
[ANSWER]
['Q734834', 'P186', {'concept': 'Q214609'}] ['Q734834', 'P186', {'concept': 'Q16686022'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { VALUES ( ?x ) { ( ontology:Q214609 ) ( ontology:Q16686022 ) } . ?v rdf:type ?x }
oil paint wood
2
action count
action union
action filter_type
action find
entity Ghent Altarpiece
relation material used
type material
action filter_type
action find
entity Ghent Altarpiece
relation material used
type natural physical object
['Ghent Altarpiece', 'material used', {'concept': 'material'}] ['Ghent Altarpiece', 'material used', {'concept': 'natural physical object'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { VALUES ( ?x ) { ( ontology:material ) ( ontology:natural_physical_object ) } . ?v rdf:type ?x }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P136
Q1792379 Q166142 Q502895
USER
Which art genres can be considered as genre of max number of applications and people ?
(c(Q166142)|c(Q502895),P136,c(Q1792379))
action argmax
action union
action find_reverse_tuple_counts
relation P136
type Q1792379
type Q166142
action find_reverse_tuple_counts
relation P136
type Q1792379
type Q502895
[[{'concept': 'Q166142'}, {'concept': 'Q502895'}], 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?u ) { SELECT DISTINCT ?i ( COUNT ( ?c ) AS ?y ) WHERE { { ?c property:P136 ?i . ?i rdf:type ontology:Q1792379 . ?c rdf:type ontology:Q166142 } UNION { ?c property:P136 ?i . ?c rdf:type ontology:Q502895 . ?i rdf:type ontology:Q1792379 } } GROUP BY ?i } } . { SELECT DISTINCT ?b ( COUNT ( ?z ) AS ?v ) WHERE { { ?b rdf:type ontology:Q1792379 . ?z rdf:type ontology:Q502895 . ?z property:P136 ?b } UNION { ?z property:P136 ?b . ?z rdf:type ontology:Q166142 . ?b rdf:type ontology:Q1792379 } } GROUP BY ?b } . FILTER ( ?v = ?u ) }
action argmax
action union
action find_reverse_tuple_counts
relation genre
type art genre
type application
action find_reverse_tuple_counts
relation genre
type art genre
type common name
[[{'concept': 'application'}, {'concept': 'common name'}], 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?u ) { SELECT DISTINCT ?i ( COUNT ( ?c ) AS ?y ) WHERE { { ?c property:genre ?i . ?i rdf:type ontology:art_genre . ?c rdf:type ontology:application } UNION { ?c property:genre ?i . ?c rdf:type ontology:common_name . ?i rdf:type ontology:art_genre } } GROUP BY ?i } } . { SELECT DISTINCT ?b ( COUNT ( ?z ) AS ?v ) WHERE { { ?b rdf:type ontology:art_genre . ?z rdf:type ontology:common_name . ?z property:genre ?b } UNION { ?z property:genre ?b . ?z rdf:type ontology:application . ?b rdf:type ontology:art_genre } } GROUP BY ?b } . FILTER ( ?v = ?u ) }
[]
art genre application common name
Q482
SYSTEM
poetry
Q482
(c(Q166142)|c(Q502895),P136,c(Q1792379))
action argmax
action union
action find_reverse_tuple_counts
relation P136
type Q1792379
type Q166142
action find_reverse_tuple_counts
relation P136
type Q1792379
type Q502895
The [ANSWER] can be considered as genre of max number of applications and people
[[{'concept': 'Q166142'}, {'concept': 'Q502895'}], 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?u ) { SELECT DISTINCT ?i ( COUNT ( ?c ) AS ?y ) WHERE { { ?c property:P136 ?i . ?i rdf:type ontology:Q1792379 . ?c rdf:type ontology:Q166142 } UNION { ?c property:P136 ?i . ?c rdf:type ontology:Q502895 . ?i rdf:type ontology:Q1792379 } } GROUP BY ?i } } . { SELECT DISTINCT ?b ( COUNT ( ?z ) AS ?v ) WHERE { { ?b rdf:type ontology:Q1792379 . ?z rdf:type ontology:Q502895 . ?z property:P136 ?b } UNION { ?z property:P136 ?b . ?z rdf:type ontology:Q166142 . ?b rdf:type ontology:Q1792379 } } GROUP BY ?b } . FILTER ( ?v = ?u ) }
poetry
The poetry can be considered as genre of max number of applications and people
poetry
action argmax
action union
action find_reverse_tuple_counts
relation genre
type art genre
type application
action find_reverse_tuple_counts
relation genre
type art genre
type common name
[[{'concept': 'application'}, {'concept': 'common name'}], 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?u ) { SELECT DISTINCT ?i ( COUNT ( ?c ) AS ?y ) WHERE { { ?c property:genre ?i . ?i rdf:type ontology:art_genre . ?c rdf:type ontology:application } UNION { ?c property:genre ?i . ?c rdf:type ontology:common_name . ?i rdf:type ontology:art_genre } } GROUP BY ?i } } . { SELECT DISTINCT ?b ( COUNT ( ?z ) AS ?v ) WHERE { { ?b rdf:type ontology:art_genre . ?z rdf:type ontology:common_name . ?z property:genre ?b } UNION { ?z property:genre ?b . ?z rdf:type ontology:application . ?b rdf:type ontology:art_genre } } GROUP BY ?b } . FILTER ( ?v = ?u ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q233428
P25
Q502895
USER
Which female person has a child named Mary Stuart Masterson ?
(Q233428,P25,c(Q502895))
action filter_type
action find
entity Q233428
relation P25
type Q502895
['Q233428', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q233428 property:P25 ?c . ?c rdf:type ontology:Q502895 }
Mary Stuart Masterson
action filter_type
action find
entity Mary Stuart Masterson
relation mother
type common name
['Mary Stuart Masterson', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Mary_Stuart_Masterson property:mother ?c . ?c rdf:type ontology:common_name }
[]
common name
Q5041297
SYSTEM
Carlin Glynn
Q5041297
(Q233428,P25,c(Q502895))
action filter_type
action find
entity Q233428
relation P25
type Q502895
And [ANSWER] has a child named Mary Stuart Masterson
['Q233428', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q233428 property:P25 ?c . ?c rdf:type ontology:Q502895 }
Carlin Glynn
And Carlin Glynn has a child named Mary Stuart Masterson
Carlin Glynn
action filter_type
action find
entity Mary Stuart Masterson
relation mother
type common name
['Mary Stuart Masterson', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Mary_Stuart_Masterson property:mother ?c . ?c rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5041297
P26
Q502895
USER
Which person is the spouse of that one ?
(Q5041297,P26,c(Q502895))
action filter_type
action find
entity Q5041297
relation P26
type Q502895
['Q5041297', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q5041297 property:P26 ?s . ?s rdf:type ontology:Q502895 }
Carlin Glynn
action filter_type
action find
entity Carlin Glynn
relation spouse
type common name
['Carlin Glynn', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Carlin_Glynn property:spouse ?s . ?s rdf:type ontology:common_name }
[]
common name
Q369485
SYSTEM
Peter Masterson
Q369485
(Q5041297,P26,c(Q502895))
action filter_type
action find
entity Q5041297
relation P26
type Q502895
[ANSWER] is the spouse of that one
['Q5041297', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q5041297 property:P26 ?s . ?s rdf:type ontology:Q502895 }
Peter Masterson
Peter Masterson is the spouse of that one
Peter Masterson
action filter_type
action find
entity Carlin Glynn
relation spouse
type common name
['Carlin Glynn', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Carlin_Glynn property:spouse ?s . ?s rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q369485 Q5166582
P57
Q838948
USER
Did that person direct Convicts ?
(Q5166582,P57,Q369485)
action is_in
entity Q369485
action find
entity Q5166582
relation P57
['Q5166582', 'P57', 'Q369485']
ASK WHERE { resource:Q5166582 property:P57 resource:Q369485 }
Peter Masterson Convicts
action is_in
entity Peter Masterson
action find
entity Convicts
relation director
['Convicts', 'director', 'Peter Masterson']
ASK WHERE { resource:Convicts property:director resource:Peter_Masterson }
[]
work of art
SYSTEM
YES
(Q5166582,P57,Q369485)
action is_in
entity Q369485
action find
entity Q5166582
relation P57
[ANSWER]
['Q5166582', 'P57', 'Q369485']
ASK WHERE { resource:Q5166582 property:P57 resource:Q369485 }
Yes
action is_in
entity Peter Masterson
action find
entity Convicts
relation director
['Convicts', 'director', 'Peter Masterson']
ASK WHERE { resource:Convicts property:director resource:Peter_Masterson }
[]