Simple Question (Direct)
Simple Question
Q3763355
P9
Q502895
USER
Who is Gianmarco Tognazzi a sibling of ?
(Q3763355,P9,c(Q502895))
action filter_type
action find
entity Q3763355
relation P9
type Q502895
['Q3763355', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q3763355 property:P9 ?e . ?e rdf:type ontology:Q502895 }
Gianmarco Tognazzi
action filter_type
action find
entity Gianmarco Tognazzi
relation sister
type common name
['Gianmarco Tognazzi', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Gianmarco_Tognazzi property:sister ?e . ?e rdf:type ontology:common_name }
[]
common name
Q3847526
SYSTEM
Maria Sole Tognazzi
Q3847526
(Q3763355,P9,c(Q502895))
action filter_type
action find
entity Q3763355
relation P9
type Q502895
Gianmarco Tognazzi a sibling of is [ANSWER]
['Q3763355', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q3763355 property:P9 ?e . ?e rdf:type ontology:Q502895 }
Maria Sole Tognazzi
Gianmarco Tognazzi a sibling of is Maria Sole Tognazzi
Maria Sole Tognazzi
action filter_type
action find
entity Gianmarco Tognazzi
relation sister
type common name
['Gianmarco Tognazzi', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Gianmarco_Tognazzi property:sister ?e . ?e rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3847526
P106
Q28640
USER
What do that person do for a living ?
(Q3847526,P106,c(Q28640))
action filter_type
action find
entity Q3847526
relation P106
type Q28640
['Q3847526', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?j WHERE { resource:Q3847526 property:P106 ?j . ?j rdf:type ontology:Q28640 }
Maria Sole Tognazzi
action filter_type
action find
entity Maria Sole Tognazzi
relation occupation
type profession
['Maria Sole Tognazzi', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?j WHERE { resource:Maria_Sole_Tognazzi property:occupation ?j . ?j rdf:type ontology:profession }
[]
profession
Q2526255 Q28389
SYSTEM
film director, screenwriter
Q2526255 Q28389
(Q3847526,P106,c(Q28640))
action filter_type
action find
entity Q3847526
relation P106
type Q28640
That person do the [ANSWERS] for a living
['Q3847526', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?j WHERE { resource:Q3847526 property:P106 ?j . ?j rdf:type ontology:Q28640 }
film director screenwriter
That person do the film director and screenwriter for a living
film director screenwriter
action filter_type
action find
entity Maria Sole Tognazzi
relation occupation
type profession
['Maria Sole Tognazzi', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?j WHERE { resource:Maria_Sole_Tognazzi property:occupation ?j . ?j rdf:type ontology:profession }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q4739578
P144
Q502895 Q15416 Q838948
USER
How many people do more number of television programs or works of art extend upon than Amanda Brown ?
(c(Q15416)|c(Q838948),P144,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P144
type Q502895
type Q15416
action find_reverse_tuple_counts
relation P144
type Q502895
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q4739578
relation P144
type Q15416
type Q838948
[[{'concept': 'Q15416'}, {'concept': 'Q838948'}], 'P144', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?z ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?o ) AS ?r ) WHERE { { ?o property:P144 ?m . ?m rdf:type ontology:Q502895 . ?o rdf:type ontology:Q15416 } UNION { ?o property:P144 ?m . ?o rdf:type ontology:Q838948 . ?m rdf:type ontology:Q502895 } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?e ) WHERE { ?x property:P144 resource:Q4739578 . { ?x rdf:type ?s . VALUES ( ?s ) { ( ontology:Q15416 ) ( ontology:Q838948 ) } } } } . FILTER ( ?r > ?e ) }
Amanda Brown
action count
action greater
action union
action find_reverse_tuple_counts
relation based on
type common name
type television program
action find_reverse_tuple_counts
relation based on
type common name
type work of art
action count
action filter_multi_types
action find_reverse
entity Amanda Brown
relation based on
type television program
type work of art
[[{'concept': 'television program'}, {'concept': 'work of art'}], 'based on', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?z ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?o ) AS ?r ) WHERE { { ?o property:based_on ?m . ?m rdf:type ontology:common_name . ?o rdf:type ontology:television_program } UNION { ?o property:based_on ?m . ?o rdf:type ontology:work_of_art . ?m rdf:type ontology:common_name } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?e ) WHERE { ?x property:based_on resource:Amanda_Brown . { ?x rdf:type ?s . VALUES ( ?s ) { ( ontology:television_program ) ( ontology:work_of_art ) } } } } . FILTER ( ?r > ?e ) }
[]
common name television program work of art
SYSTEM
3
Q313048 Q12014160 Q5968600
(c(Q15416)|c(Q838948),P144,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P144
type Q502895
type Q15416
action find_reverse_tuple_counts
relation P144
type Q502895
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q4739578
relation P144
type Q15416
type Q838948
[ANSWER]
[[{'concept': 'Q15416'}, {'concept': 'Q838948'}], 'P144', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?z ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?o ) AS ?r ) WHERE { { ?o property:P144 ?m . ?m rdf:type ontology:Q502895 . ?o rdf:type ontology:Q15416 } UNION { ?o property:P144 ?m . ?o rdf:type ontology:Q838948 . ?m rdf:type ontology:Q502895 } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?e ) WHERE { ?x property:P144 resource:Q4739578 . { ?x rdf:type ?s . VALUES ( ?s ) { ( ontology:Q15416 ) ( ontology:Q838948 ) } } } } . FILTER ( ?r > ?e ) }
Bob Kane Huh Young-man Jeffrey Reddick
3
action count
action greater
action union
action find_reverse_tuple_counts
relation based on
type common name
type television program
action find_reverse_tuple_counts
relation based on
type common name
type work of art
action count
action filter_multi_types
action find_reverse
entity Amanda Brown
relation based on
type television program
type work of art
[[{'concept': 'television program'}, {'concept': 'work of art'}], 'based on', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?z ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?o ) AS ?r ) WHERE { { ?o property:based_on ?m . ?m rdf:type ontology:common_name . ?o rdf:type ontology:television_program } UNION { ?o property:based_on ?m . ?o rdf:type ontology:work_of_art . ?m rdf:type ontology:common_name } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?e ) WHERE { ?x property:based_on resource:Amanda_Brown . { ?x rdf:type ?s . VALUES ( ?s ) { ( ontology:television_program ) ( ontology:work_of_art ) } } } } . FILTER ( ?r > ?e ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3847526
P58
Q838948
USER
Which works of art have Maria Sole Tognazzi as screenwriter ?
(c(Q838948),P58,Q3847526)
action filter_type
action find_reverse
entity Q3847526
relation P58
type Q838948
[{'concept': 'Q838948'}, 'P58', 'Q3847526']
SELECT DISTINCT ?i WHERE { ?i property:P58 resource:Q3847526 . ?i rdf:type ontology:Q838948 }
Maria Sole Tognazzi
action filter_type
action find_reverse
entity Maria Sole Tognazzi
relation screenwriter
type work of art
[{'concept': 'work of art'}, 'screenwriter', 'Maria Sole Tognazzi']
SELECT DISTINCT ?i WHERE { ?i property:screenwriter resource:Maria_Sole_Tognazzi . ?i rdf:type ontology:work_of_art }
[]
work of art
Q3897240 Q3819964
SYSTEM
Past Perfect, The Man Who Loves
Q3897240 Q3819964
(c(Q838948),P58,Q3847526)
action filter_type
action find_reverse
entity Q3847526
relation P58
type Q838948
Past Perfect and The Man Who loves have Maria Sole Tognazzi as screenwriter
[{'concept': 'Q838948'}, 'P58', 'Q3847526']
SELECT DISTINCT ?i WHERE { ?i property:P58 resource:Q3847526 . ?i rdf:type ontology:Q838948 }
Past Perfect The Man Who Loves
Past Perfect and The Man Who loves have Maria Sole Tognazzi as screenwriter
Past Perfect The Man Who Loves
action filter_type
action find_reverse
entity Maria Sole Tognazzi
relation screenwriter
type work of art
[{'concept': 'work of art'}, 'screenwriter', 'Maria Sole Tognazzi']
SELECT DISTINCT ?i WHERE { ?i property:screenwriter resource:Maria_Sole_Tognazzi . ?i rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q3897240 Q3819964
P86
Q502895
USER
Who did the compostion for those works of art ?
(Q3897240,P86,c(Q502895)) (Q3819964,P86,c(Q502895))
action filter_type
action find
entity prev_answer
relation P86
type Q502895
['Q3897240', 'P86', {'concept': 'Q502895'}] ['Q3819964', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { VALUES ( ?l ) { ( resource:Q3897240 ) ( resource:Q3819964 ) } . ?l property:P86 ?q . ?q rdf:type ontology:Q502895 }
Past Perfect The Man Who Loves
action filter_type
action find
entity prev_answer
relation composer
type common name
['Past Perfect', 'composer', {'concept': 'common name'}] ['The Man Who Loves', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { VALUES ( ?l ) { ( resource:Past_Perfect ) ( resource:The_Man_Who_Loves ) } . ?l property:composer ?q . ?q rdf:type ontology:common_name }
[]
common name
Q494015 Q447139
SYSTEM
Andrea Guerra, Carmen Consoli
Q494015 Q447139
(Q3897240,P86,c(Q502895)) (Q3819964,P86,c(Q502895))
action filter_type
action find
entity prev_answer
relation P86
type Q502895
[ANSWERS] did the compostion for those works of art
['Q3897240', 'P86', {'concept': 'Q502895'}] ['Q3819964', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { VALUES ( ?l ) { ( resource:Q3897240 ) ( resource:Q3819964 ) } . ?l property:P86 ?q . ?q rdf:type ontology:Q502895 }
Andrea Guerra Carmen Consoli
Andrea Guerra and Carmen Consoli did the compostion for those works of art
Andrea Guerra Carmen Consoli
action filter_type
action find
entity prev_answer
relation composer
type common name
['Past Perfect', 'composer', {'concept': 'common name'}] ['The Man Who Loves', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { VALUES ( ?l ) { ( resource:Past_Perfect ) ( resource:The_Man_Who_Loves ) } . ?l property:composer ?q . ?q rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q494015
P40
Q502895
USER
Who has that one as a child ?
(c(Q502895),P40,Q494015)
action filter_type
action find_reverse
entity Q494015
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q494015']
SELECT DISTINCT ?q WHERE { ?q property:P40 resource:Q494015 . ?q rdf:type ontology:Q502895 }
Andrea Guerra
action filter_type
action find_reverse
entity Andrea Guerra
relation child
type common name
[{'concept': 'common name'}, 'child', 'Andrea Guerra']
SELECT DISTINCT ?q WHERE { ?q property:child resource:Andrea_Guerra . ?q rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q494015
SYSTEM
Did you mean Andrea Guerra ?
Q494015 Q447139
(c(Q502895),P40,Q494015) (c(Q502895),P40,Q447139)
[ANSWER]
[{'concept': 'Q502895'}, 'P40', 'Q494015'] [{'concept': 'Q502895'}, 'P40', 'Q447139']
SELECT DISTINCT ?q WHERE { ?q property:P40 resource:Q494015 . ?q rdf:type ontology:Q502895 }
Andrea Guerra Carmen Consoli
Did you mean Andrea Guerra ?
Andrea Guerra
[{'concept': 'common name'}, 'child', 'Andrea Guerra'] [{'concept': 'common name'}, 'child', 'Carmen Consoli']
SELECT DISTINCT ?q WHERE { ?q property:child resource:Andrea_Guerra . ?q rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P40,Q494015)
[{'concept': 'Q502895'}, 'P40', 'Q494015']
[{'concept': 'common name'}, 'child', 'Andrea Guerra']
[]
Q460095
SYSTEM
Tonino Guerra
Q460095
(c(Q502895),P40,Q494015)
action filter_type
action find_reverse
entity Q494015
relation P40
type Q502895
[ANSWER] has that one as a child
[{'concept': 'Q502895'}, 'P40', 'Q494015']
SELECT DISTINCT ?q WHERE { ?q property:P40 resource:Q494015 . ?q rdf:type ontology:Q502895 }
Tonino Guerra
Tonino Guerra has that one as a child
Tonino Guerra
action filter_type
action find_reverse
entity Andrea Guerra
relation child
type common name
[{'concept': 'common name'}, 'child', 'Andrea Guerra']
SELECT DISTINCT ?q WHERE { ?q property:child resource:Andrea_Guerra . ?q rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P3091
Q3745054 Q502895 Q502895
USER
Which people utilize atleast 1 horse breeds or people as steed ?
(c(Q502895),P3091,c(Q3745054)|c(Q502895))
action atleast
action union
action find_tuple_counts
relation P3091
type Q502895
type Q3745054
action find_tuple_counts
relation P3091
type Q502895
type Q502895
value 1
[{'concept': 'Q502895'}, 'P3091', [{'concept': 'Q3745054'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?g WHERE { FILTER ( ?n >= 1 ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) ?g WHERE { { ?g rdf:type ontology:Q502895 . ?f rdf:type ontology:Q3745054 . ?g property:P3091 ?f } UNION { ?g property:P3091 ?f . ?f rdf:type ontology:Q502895 . ?g rdf:type ontology:Q502895 } } GROUP BY ?g } }
action atleast
action union
action find_tuple_counts
relation mount
type common name
type horse breed
action find_tuple_counts
relation mount
type common name
type common name
value 1
[{'concept': 'common name'}, 'mount', [{'concept': 'horse breed'}, {'concept': 'common name'}]]
SELECT DISTINCT ?g WHERE { FILTER ( ?n >= 1 ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) ?g WHERE { { ?g rdf:type ontology:common_name . ?f rdf:type ontology:horse_breed . ?g property:mount ?f } UNION { ?g property:mount ?f . ?f rdf:type ontology:common_name . ?g rdf:type ontology:common_name } } GROUP BY ?g } }
[]
horse breed common name common name
Q9682 Q517 Q131691
SYSTEM
Elizabeth II, Napoleon, Arthur Wellesley, 1st Duke of Wellington
Q2831786 Q2120529 Q2964761 Q2643622 Q69084 Q1682742 Q451395 Q1311486 Q682476 Q358777 Q1088130 Q527657 Q364671 Q235022 Q3089727 Q919677 Q16208274 Q3400624 Q15782408 Q3087038 Q947032 Q3428317 Q2057115 Q131691 Q17350580 Q14912896 Q438197 Q3591240 Q3169911 Q2396962 Q19630218 Q3106094 Q958372 Q319522 Q724288 Q78028 Q7647583 Q823503 Q147663 Q513487 Q494315 Q377345 Q5247967 Q538006 Q8409 Q2831635 Q952736 Q1710812 Q467676 Q1545318 Q34836 Q238769 Q745510 Q318626 Q608440 Q19839389 Q2287454 Q3134506 Q926771 Q3309932 Q517 Q1351428 Q62177 Q458399 Q2903241 Q529497 Q3380679 Q1617291 Q1337633 Q953867 Q364659 Q19880092 Q1119157 Q1581746 Q60968 Q72502 Q25906137 Q6765126 Q15972334 Q6148833 Q1391424 Q2094373 Q5079900 Q1277320 Q6369922 Q1985582 Q1342822 Q76246 Q1691413 Q288267 Q270476 Q272533 Q3074167 Q1930899 Q449891 Q1292304 Q1343527 Q690536 Q175930 Q43958 Q3428878 Q673136 Q886901 Q1261810 Q77560 Q62253 Q3308301 Q1538882 Q3524341 Q3591324 Q9682 Q1633084 Q2420937
(c(Q502895),P3091,c(Q3745054)|c(Q502895))
action atleast
action union
action find_tuple_counts
relation P3091
type Q502895
type Q3745054
action find_tuple_counts
relation P3091
type Q502895
type Q502895
value 1
[ANSWERS]
[{'concept': 'Q502895'}, 'P3091', [{'concept': 'Q3745054'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?g WHERE { FILTER ( ?n >= 1 ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) ?g WHERE { { ?g rdf:type ontology:Q502895 . ?f rdf:type ontology:Q3745054 . ?g property:P3091 ?f } UNION { ?g property:P3091 ?f . ?f rdf:type ontology:Q502895 . ?g rdf:type ontology:Q502895 } } GROUP BY ?g } }
Alberto Larraguibel Pénélope Leprevost Chris Kappler Alexandra Ledermann Paul Schockemöhle Janika Sprunger Fritz Thiedemann Mario Deslauriers Paul Estermann Yves Saint-Martin Maxime Guyon Margit Otto-Crépin Jean Teulère Anky van Grunsven Frédéric Cottier Nicolas Touzaint Barbara Minneci Sir Harry Llewellyn, 3rd Baronet Ali Al Rumaihi Freddy Head Pierre Jonquères d'Oriola Torrance Fleischmann Patrice Delaveau Arthur Wellesley, 1st Duke of Wellington Fernand Leredde Bassem Hassan Mohammed Helen Langehanenberg Éric Levallois Jean-René Gougeon Ron Turcotte Michel-Marcel Gougeon Gilles Bertrán de Balanda Piet Raijmakers Ulrich Kirchhoff Rodrigo Pessoa Marco Kutscher Susan Blinks Uwe Sauer Zara Phillips Linda Algotsson Gerco Schröder Lester Piggott Debbie McDonald Pat Eddery Alexander the Great Albert Voorn Nelson Pessoa Richard Spooner Reiner Klimke Greg Best Ulysses S. Grant Isabell Werth Ludo Philippaerts Lars Nieberg John Whitaker Abdelkebir Ouaddar Simon Delestre Hervé Godignon Earl Foster Thomson Michel Hécart Napoleon Eric Lamaze Hans Günter Winkler Laura Bechtolsheimer Bill Hartack Edwina Tops-Alexander Philippe Rozier Pierre Durand, Jr. Scott Brash Conrad Homfeld Cédric Lyard Lendon Gray Frankie Dettori Hans Peter Minderhoud Ludger Beerbaum Otto Becker Astier Nicolas Marion Coakes Natasha Baker Jan Ebeling Jos Lansink Rolf-Göran Bengtsson Charles Kurtsinger Roger-Yves Bost Karen O'Connor Nick Skelton William Fox-Pitt Marcus Ehning Joseph Fargis Éric Navet Sara Algotsson Ostholt Charlotte Dujardin Florian Angot Michel Robert Beezie Madden Edward Gal Karin Rehbein Pius Schwizer Ian Millar El Cid Reynald Angot Steve Guerdat Blyth Tait Eddie Macken Michael Jung Meredith Michaels-Beerbaum Michael Kinane Kevin Staut Thierry Jarnet Éric Raffin Elizabeth II Hubert Bourdy Thierry Pomel
Elizabeth II, Napoleon and Arthur Wellesley, 1st Duke of Wellington utilize atleast 1 horse breeds or people as steed
Elizabeth II Napoleon Arthur Wellesley, 1st Duke of Wellington
action atleast
action union
action find_tuple_counts
relation mount
type common name
type horse breed
action find_tuple_counts
relation mount
type common name
type common name
value 1
[{'concept': 'common name'}, 'mount', [{'concept': 'horse breed'}, {'concept': 'common name'}]]
SELECT DISTINCT ?g WHERE { FILTER ( ?n >= 1 ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) ?g WHERE { { ?g rdf:type ontology:common_name . ?f rdf:type ontology:horse_breed . ?g property:mount ?f } UNION { ?g property:mount ?f . ?f rdf:type ontology:common_name . ?g rdf:type ontology:common_name } } GROUP BY ?g } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q517 Q4294512
P88
Q18783400
USER
How many genres of sculpture did Napoleon or Ministry of Defence of Finland commission ?
(c(Q18783400),P88,Q517) (c(Q18783400),P88,Q4294512)
action count
action union
action filter_type
action find_reverse
entity Q517
relation P88
type Q18783400
action filter_type
action find_reverse
entity Q4294512
relation P88
type Q18783400
[{'concept': 'Q18783400'}, 'P88', 'Q517'] [{'concept': 'Q18783400'}, 'P88', 'Q4294512']
SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { { ?n property:P88 resource:Q517 . ?n rdf:type ontology:Q18783400 } UNION { ?n property:P88 resource:Q4294512 . ?n rdf:type ontology:Q18783400 } }
Napoleon Ministry of Defence of Finland
action count
action union
action filter_type
action find_reverse
entity Napoleon
relation commissioned by
type genre of sculpture
action filter_type
action find_reverse
entity Ministry of Defence of Finland
relation commissioned by
type genre of sculpture
[{'concept': 'genre of sculpture'}, 'commissioned by', 'Napoleon'] [{'concept': 'genre of sculpture'}, 'commissioned by', 'Ministry of Defence of Finland']
SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { { ?n property:commissioned_by resource:Napoleon . ?n rdf:type ontology:genre_of_sculpture } UNION { ?n property:commissioned_by resource:Ministry_of_Defence_of_Finland . ?n rdf:type ontology:genre_of_sculpture } }
[]
genre of sculpture
SYSTEM
2
Q18662410 Q27031521
(c(Q18783400),P88,Q517) (c(Q18783400),P88,Q4294512)
action count
action union
action filter_type
action find_reverse
entity Q517
relation P88
type Q18783400
action filter_type
action find_reverse
entity Q4294512
relation P88
type Q18783400
[ANSWER]
[{'concept': 'Q18783400'}, 'P88', 'Q517'] [{'concept': 'Q18783400'}, 'P88', 'Q4294512']
SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { { ?n property:P88 resource:Q517 . ?n rdf:type ontology:Q18783400 } UNION { ?n property:P88 resource:Q4294512 . ?n rdf:type ontology:Q18783400 } }
Monument of torpedo boat S 2 Theseus defeats the centaur
2
action count
action union
action filter_type
action find_reverse
entity Napoleon
relation commissioned by
type genre of sculpture
action filter_type
action find_reverse
entity Ministry of Defence of Finland
relation commissioned by
type genre of sculpture
[{'concept': 'genre of sculpture'}, 'commissioned by', 'Napoleon'] [{'concept': 'genre of sculpture'}, 'commissioned by', 'Ministry of Defence of Finland']
SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { { ?n property:commissioned_by resource:Napoleon . ?n rdf:type ontology:genre_of_sculpture } UNION { ?n property:commissioned_by resource:Ministry_of_Defence_of_Finland . ?n rdf:type ontology:genre_of_sculpture } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q17505078 Q460095
P27
Q15617994
USER
Which administrative territories do Tonino Guerra or Elvis Haxhillari belong to ?
OR((Q460095,P27,c(Q15617994)), (Q17505078,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q460095
relation P27
action find
entity Q17505078
relation P27
type Q15617994
{'OR': [['Q460095', 'P27', {'concept': 'Q15617994'}], ['Q17505078', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q15617994 . { VALUES ( ?x ) { ( resource:Q460095 ) ( resource:Q17505078 ) } . ?x property:P27 ?w } }
Elvis Haxhillari Tonino Guerra
action filter_type
action union
action find
entity Tonino Guerra
relation country of citizenship
action find
entity Elvis Haxhillari
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Tonino Guerra', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Elvis Haxhillari', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?x ) { ( resource:Tonino_Guerra ) ( resource:Elvis_Haxhillari ) } . ?x property:country_of_citizenship ?w } }
[]
designation for an administrative territorial entity
Q38 Q222
SYSTEM
Italy, Albania
Q38 Q222
OR((Q460095,P27,c(Q15617994)), (Q17505078,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q460095
relation P27
action find
entity Q17505078
relation P27
type Q15617994
Tonino Guerra or Elvis Haxhillari belong to [ANSWERS]
{'OR': [['Q460095', 'P27', {'concept': 'Q15617994'}], ['Q17505078', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q15617994 . { VALUES ( ?x ) { ( resource:Q460095 ) ( resource:Q17505078 ) } . ?x property:P27 ?w } }
Italy Albania
Tonino Guerra or Elvis Haxhillari belong to Italy and Albania
Italy Albania
action filter_type
action union
action find
entity Tonino Guerra
relation country of citizenship
action find
entity Elvis Haxhillari
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Tonino Guerra', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Elvis Haxhillari', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?x ) { ( resource:Tonino_Guerra ) ( resource:Elvis_Haxhillari ) } . ?x property:country_of_citizenship ?w } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q667549
P530
Q15617994
USER
Do Hanstedt have diplomatic relations with those ones ?
(Q667549,P530,Q38) (Q667549,P530,Q222)
action is_in
entity prev_answer
action find
entity Q667549
relation P530
['Q667549', 'P530', 'Q38'] ['Q667549', 'P530', 'Q222']
ASK WHERE { VALUES ( ?x ) { ( resource:Q38 ) ( resource:Q222 ) } . resource:Q667549 property:P530 ?x }
Hanstedt
action is_in
entity prev_answer
action find
entity Hanstedt
relation diplomatic relation
['Hanstedt', 'diplomatic relation', 'Italy'] ['Hanstedt', 'diplomatic relation', 'Albania']
ASK WHERE { VALUES ( ?x ) { ( resource:Italy ) ( resource:Albania ) } . resource:Hanstedt property:diplomatic_relation ?x }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q667549,P530,Q38) (Q667549,P530,Q222)
action is_in
entity prev_answer
action find
entity Q667549
relation P530
[ANSWER]
['Q667549', 'P530', 'Q38'] ['Q667549', 'P530', 'Q222']
ASK WHERE { VALUES ( ?x ) { ( resource:Q38 ) ( resource:Q222 ) } . resource:Q667549 property:P530 ?x }
No
action is_in
entity prev_answer
action find
entity Hanstedt
relation diplomatic relation
['Hanstedt', 'diplomatic relation', 'Italy'] ['Hanstedt', 'diplomatic relation', 'Albania']
ASK WHERE { VALUES ( ?x ) { ( resource:Italy ) ( resource:Albania ) } . resource:Hanstedt property:diplomatic_relation ?x }
[]