Simple Question (Direct)
Simple Question
Q3924860
P186
Q5447188
USER
Which solution is used to produce Pseudo-Seneca ?
(Q3924860,P186,c(Q5447188))
action filter_type
action find
entity Q3924860
relation P186
type Q5447188
['Q3924860', 'P186', {'concept': 'Q5447188'}]
SELECT DISTINCT ?z WHERE { resource:Q3924860 property:P186 ?z . ?z rdf:type ontology:Q5447188 }
Pseudo-Seneca
action filter_type
action find
entity Pseudo-Seneca
relation material used
type solution
['Pseudo-Seneca', 'material used', {'concept': 'solution'}]
SELECT DISTINCT ?z WHERE { resource:Pseudo-Seneca property:material_used ?z . ?z rdf:type ontology:solution }
[]
solution
Q34095
SYSTEM
bronze
Q34095
(Q3924860,P186,c(Q5447188))
action filter_type
action find
entity Q3924860
relation P186
type Q5447188
[ANSWER] is used to produce Pseudo-Seneca
['Q3924860', 'P186', {'concept': 'Q5447188'}]
SELECT DISTINCT ?z WHERE { resource:Q3924860 property:P186 ?z . ?z rdf:type ontology:Q5447188 }
bronze
Bronze is used to produce Pseudo-Seneca
bronze
action filter_type
action find
entity Pseudo-Seneca
relation material used
type solution
['Pseudo-Seneca', 'material used', {'concept': 'solution'}]
SELECT DISTINCT ?z WHERE { resource:Pseudo-Seneca property:material_used ?z . ?z rdf:type ontology:solution }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3924860
P136
Q483394
USER
What can be considered as category for that work of art ?
(Q34095,P136,c(Q483394))
action filter_type
action find
entity Q3924860
relation P136
type Q483394
['Q34095', 'P136', {'concept': 'Q483394'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q483394 . resource:Q3924860 property:P136 ?c }
Pseudo-Seneca
action filter_type
action find
entity Pseudo-Seneca
relation genre
type genre
['bronze', 'genre', {'concept': 'genre'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:genre . resource:Pseudo-Seneca property:genre ?c }
[]
genre
Q241045
SYSTEM
bust
Q241045
(Q34095,P136,c(Q483394))
action filter_type
action find
entity Q3924860
relation P136
type Q483394
[ANSWER] can be considered as category for that work of art
['Q34095', 'P136', {'concept': 'Q483394'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q483394 . resource:Q3924860 property:P136 ?c }
bust
Bust can be considered as category for that work of art
bust
action filter_type
action find
entity Pseudo-Seneca
relation genre
type genre
['bronze', 'genre', {'concept': 'genre'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:genre . resource:Pseudo-Seneca property:genre ?c }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1779386
P180
Q838948 Q3305213 Q340169
USER
How many works of art are depicted in approximately the same number of paintings and medias as Menat ?
(c(Q3305213)|c(Q340169),P180,c(Q838948))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q838948
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q838948
type Q340169
action count
action filter_multi_types
action find_reverse
entity Q1779386
relation P180
type Q3305213
type Q340169
[[{'concept': 'Q3305213'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?m ) ?f WHERE { { ?t property:P180 ?f . ?f rdf:type ontology:Q838948 . ?t rdf:type ontology:Q3305213 } UNION { ?t property:P180 ?f . ?f rdf:type ontology:Q838948 . ?t rdf:type ontology:Q340169 } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { ?o property:P180 resource:Q1779386 . { { ?o rdf:type ontology:Q3305213 } UNION { ?o rdf:type ontology:Q340169 } } } } . FILTER ( ?m = ?z ) }
Menat
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type work of art
type painting
action find_reverse_tuple_counts
relation depicts
type work of art
type media
action count
action filter_multi_types
action find_reverse
entity Menat
relation depicts
type painting
type media
[[{'concept': 'painting'}, {'concept': 'media'}], 'depicts', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?m ) ?f WHERE { { ?t property:depicts ?f . ?f rdf:type ontology:work_of_art . ?t rdf:type ontology:painting } UNION { ?t property:depicts ?f . ?f rdf:type ontology:work_of_art . ?t rdf:type ontology:media } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { ?o property:depicts resource:Menat . { { ?o rdf:type ontology:painting } UNION { ?o rdf:type ontology:media } } } } . FILTER ( ?m = ?z ) }
[]
work of art painting media
SYSTEM
100
Q86440 Q27478577 Q7294420 Q23714516 Q216402 Q18147625 Q18147624 Q20176696 Q1111051 Q143912 Q846870 Q178401 Q21375954 Q1519294 Q27478544 Q766487 Q232042 Q27462703 Q215194 Q3545179 Q46847 Q221211 Q2439030 Q23770419 Q170980 Q333009 Q750209 Q1064990 Q19969041 Q734834 Q3015661 Q473237 Q3497617 Q20631770 Q267971 Q831869 Q2535008 Q17172602 Q324926 Q93184 Q177600 Q3013723 Q221323 Q17305006 Q2551806 Q2111434 Q1230963 Q185382 Q11060274 Q3424549 Q1779386 Q9764 Q1395302 Q179900 Q826635 Q2070542 Q733893 Q185392 Q619135 Q294001 Q848790 Q3731233 Q17275826 Q215911 Q476968 Q1350279 Q17305020 Q280336 Q652011 Q3575260 Q16332506 Q2963060 Q907387 Q18177089 Q3143107 Q374591 Q959962 Q6555477 Q125191 Q130958 Q371752 Q203443 Q201022 Q774967 Q945850 Q216185 Q79218 Q1989744 Q465762 Q492461 Q7539835 Q745783 Q1349065 Q397447 Q183272 Q3918710 Q599302 Q208440 Q1192229 Q21743265
(c(Q3305213)|c(Q340169),P180,c(Q838948))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q838948
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q838948
type Q340169
action count
action filter_multi_types
action find_reverse
entity Q1779386
relation P180
type Q3305213
type Q340169
[ANSWER]
[[{'concept': 'Q3305213'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?m ) ?f WHERE { { ?t property:P180 ?f . ?f rdf:type ontology:Q838948 . ?t rdf:type ontology:Q3305213 } UNION { ?t property:P180 ?f . ?f rdf:type ontology:Q838948 . ?t rdf:type ontology:Q340169 } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { ?o property:P180 resource:Q1779386 . { { ?o rdf:type ontology:Q3305213 } UNION { ?o rdf:type ontology:Q340169 } } } } . FILTER ( ?m = ?z ) }
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 triumphal arch Prometheus Bound amphora Allegory of the city of Paris lagynos Silenus holding the child Dionysos David The Two Gentlemen of Verona Satyr playing flute gargoyle Rape of the Sabine Women ring Twelfth Night St. Peter's Baldacchino Bear Hunter obelisk can-can Colossi of Memnon Monument aux Girondins Allegory of the Seine River Ghent Altarpiece erotic dancing Statue of Bartolomeo Colleoni equestrian statue of Joan of Arc equestrian statue of George Washington Triton Fountain oenochoe Neptune and Triton monumental cross fibula drawing stick figure The Railrodder golden calf Galatea Belvedere Torso pendant Under Western Stars Trevi Fountain print Frederik V on Horseback Menat flamenco One True Thing David 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 Tanagra partner dance Richard III bijou Ploughman Marly horses Equestrian Statue of Marcus Aurelius Dénicheur d'oursons Humains 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 kalathos Sleeping Ariadne hydria Passion play torc frieze Wrestlers Column of Antoninus Pius chess piece The Original Sin Torso in Metal from Rock Drill
100
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type work of art
type painting
action find_reverse_tuple_counts
relation depicts
type work of art
type media
action count
action filter_multi_types
action find_reverse
entity Menat
relation depicts
type painting
type media
[[{'concept': 'painting'}, {'concept': 'media'}], 'depicts', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?m ) ?f WHERE { { ?t property:depicts ?f . ?f rdf:type ontology:work_of_art . ?t rdf:type ontology:painting } UNION { ?t property:depicts ?f . ?f rdf:type ontology:work_of_art . ?t rdf:type ontology:media } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { ?o property:depicts resource:Menat . { { ?o rdf:type ontology:painting } UNION { ?o rdf:type ontology:media } } } } . FILTER ( ?m = ?z ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q185382
P180
Q838948 Q3305213 Q340169
USER
And also tell me about Trevi Fountain?
(c(Q3305213)|c(Q340169),P180,c(Q838948))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q838948
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q838948
type Q340169
action count
action filter_multi_types
action find_reverse
entity Q185382
relation P180
type Q3305213
type Q340169
[[{'concept': 'Q3305213'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) ?k WHERE { ?s rdf:type ?f . VALUES ( ?f ) { ( ontology:Q3305213 ) ( ontology:Q340169 ) } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) WHERE { ?j property:P180 resource:Q185382 . { ?j rdf:type ?p . VALUES ( ?p ) { ( ontology:Q3305213 ) ( ontology:Q340169 ) } } } } . FILTER ( ?u = ?e ) }
Trevi Fountain
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type work of art
type painting
action find_reverse_tuple_counts
relation depicts
type work of art
type media
action count
action filter_multi_types
action find_reverse
entity Trevi Fountain
relation depicts
type painting
type media
[[{'concept': 'painting'}, {'concept': 'media'}], 'depicts', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) ?k WHERE { ?s rdf:type ?f . VALUES ( ?f ) { ( ontology:painting ) ( ontology:media ) } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) WHERE { ?j property:depicts resource:Trevi_Fountain . { ?j rdf:type ?p . VALUES ( ?p ) { ( ontology:painting ) ( ontology:media ) } } } } . FILTER ( ?u = ?e ) }
[]
work of art painting media
SYSTEM
100
Q86440 Q27478577 Q7294420 Q23714516 Q216402 Q18147625 Q18147624 Q20176696 Q1111051 Q143912 Q846870 Q178401 Q21375954 Q1519294 Q27478544 Q766487 Q232042 Q27462703 Q215194 Q3545179 Q46847 Q221211 Q2439030 Q23770419 Q170980 Q333009 Q750209 Q1064990 Q19969041 Q734834 Q3015661 Q473237 Q3497617 Q20631770 Q267971 Q831869 Q2535008 Q17172602 Q324926 Q93184 Q177600 Q3013723 Q221323 Q17305006 Q2551806 Q2111434 Q1230963 Q185382 Q11060274 Q3424549 Q1779386 Q9764 Q1395302 Q179900 Q826635 Q2070542 Q733893 Q185392 Q619135 Q294001 Q848790 Q3731233 Q17275826 Q215911 Q476968 Q1350279 Q17305020 Q280336 Q652011 Q3575260 Q16332506 Q2963060 Q907387 Q18177089 Q3143107 Q374591 Q959962 Q6555477 Q125191 Q130958 Q371752 Q203443 Q201022 Q774967 Q945850 Q216185 Q79218 Q1989744 Q465762 Q492461 Q7539835 Q745783 Q1349065 Q397447 Q183272 Q3918710 Q599302 Q208440 Q1192229 Q21743265
(c(Q3305213)|c(Q340169),P180,c(Q838948))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q838948
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q838948
type Q340169
action count
action filter_multi_types
action find_reverse
entity Q185382
relation P180
type Q3305213
type Q340169
[ANSWER]
[[{'concept': 'Q3305213'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) ?k WHERE { ?s rdf:type ?f . VALUES ( ?f ) { ( ontology:Q3305213 ) ( ontology:Q340169 ) } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) WHERE { ?j property:P180 resource:Q185382 . { ?j rdf:type ?p . VALUES ( ?p ) { ( ontology:Q3305213 ) ( ontology:Q340169 ) } } } } . FILTER ( ?u = ?e ) }
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 triumphal arch Prometheus Bound amphora Allegory of the city of Paris lagynos Silenus holding the child Dionysos David The Two Gentlemen of Verona Satyr playing flute gargoyle Rape of the Sabine Women ring Twelfth Night St. Peter's Baldacchino Bear Hunter obelisk can-can Colossi of Memnon Monument aux Girondins Allegory of the Seine River Ghent Altarpiece erotic dancing Statue of Bartolomeo Colleoni equestrian statue of Joan of Arc equestrian statue of George Washington Triton Fountain oenochoe Neptune and Triton monumental cross fibula drawing stick figure The Railrodder golden calf Galatea Belvedere Torso pendant Under Western Stars Trevi Fountain print Frederik V on Horseback Menat flamenco One True Thing David 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 Tanagra partner dance Richard III bijou Ploughman Marly horses Equestrian Statue of Marcus Aurelius Dénicheur d'oursons Humains 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 kalathos Sleeping Ariadne hydria Passion play torc frieze Wrestlers Column of Antoninus Pius chess piece The Original Sin Torso in Metal from Rock Drill
100
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type work of art
type painting
action find_reverse_tuple_counts
relation depicts
type work of art
type media
action count
action filter_multi_types
action find_reverse
entity Trevi Fountain
relation depicts
type painting
type media
[[{'concept': 'painting'}, {'concept': 'media'}], 'depicts', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) ?k WHERE { ?s rdf:type ?f . VALUES ( ?f ) { ( ontology:painting ) ( ontology:media ) } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) WHERE { ?j property:depicts resource:Trevi_Fountain . { ?j rdf:type ?p . VALUES ( ?p ) { ( ontology:painting ) ( ontology:media ) } } } } . FILTER ( ?u = ?e ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q482994 Q16887380 Q838948
USER
Which works of art are a part of exactly 1 albums or groups ?
(c(Q838948),P361,c(Q482994)|c(Q16887380))
action equal
action union
action find_tuple_counts
relation P361
type Q838948
type Q482994
action find_tuple_counts
relation P361
type Q838948
type Q16887380
value 1
[{'concept': 'Q838948'}, 'P361', [{'concept': 'Q482994'}, {'concept': 'Q16887380'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) ?s WHERE { VALUES ( ?f ) { ( ontology:Q482994 ) ( ontology:Q16887380 ) } . ?k rdf:type ?f } GROUP BY ?s } . FILTER ( ?o = 1 ) }
action equal
action union
action find_tuple_counts
relation part of
type work of art
type album
action find_tuple_counts
relation part of
type work of art
type group
value 1
[{'concept': 'work of art'}, 'part of', [{'concept': 'album'}, {'concept': 'group'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) ?s WHERE { VALUES ( ?f ) { ( ontology:album ) ( ontology:group ) } . ?k rdf:type ?f } GROUP BY ?s } . FILTER ( ?o = 1 ) }
[]
album group work of art
Q1571266 Q6738073 Q4962538
SYSTEM
Ulysses S. Grant Memorial, Major General George B. McClellan, Brevet Lt. General Winfield Scott
Q7069912 Q4967183 Q5532297 Q4962538 Q5532298 Q5539818 Q15624921 Q4683664 Q1571266 Q5368987 Q4913804 Q5316041 Q7716124 Q5532097 Q5594263 Q2065740 Q5531973 Q6738073 Q6738074 Q6738080
(c(Q838948),P361,c(Q482994)|c(Q16887380))
action equal
action union
action find_tuple_counts
relation P361
type Q838948
type Q482994
action find_tuple_counts
relation P361
type Q838948
type Q16887380
value 1
[ANSWERS] are a part of exactly 1 albums or groups
[{'concept': 'Q838948'}, 'P361', [{'concept': 'Q482994'}, {'concept': 'Q16887380'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) ?s WHERE { VALUES ( ?f ) { ( ontology:Q482994 ) ( ontology:Q16887380 ) } . ?k rdf:type ?f } GROUP BY ?s } . FILTER ( ?o = 1 ) }
Nuns of the Battlefield Brigadier General Albert Pike General William Tecumseh Sherman Monument Brevet Lt. General Winfield Scott General Winfield Scott Hancock George Gordon Meade Memorial Vondel statue Admiral David G. Farragut Ulysses S. Grant Memorial Emancipation Memorial statue of Sacred Heart of Jesus Christ Dupont Circle Fountain The Beatles Anthology General Philip Sheridan Grand Army of the Republic Memorial Peace Monument General John A. Rawlins Major General George B. McClellan Major General George Henry Thomas Major General John A. Logan
Ulysses S. Grant Memorial, Major General George B. McClellan and Brevet Lt. General Winfield Scott are a part of exactly 1 albums or groups
Ulysses S. Grant Memorial Major General George B. McClellan Brevet Lt. General Winfield Scott
action equal
action union
action find_tuple_counts
relation part of
type work of art
type album
action find_tuple_counts
relation part of
type work of art
type group
value 1
[{'concept': 'work of art'}, 'part of', [{'concept': 'album'}, {'concept': 'group'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) ?s WHERE { VALUES ( ?f ) { ( ontology:album ) ( ontology:group ) } . ?k rdf:type ?f } GROUP BY ?s } . FILTER ( ?o = 1 ) }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P361
Q9332 Q838948
USER
How many works of art are a component of more number of behaviors than that work of art ?
(c(Q838948),P361,c(Q9332))
[{'concept': 'Q838948'}, 'P361', {'concept': 'Q9332'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:P361 ?y . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q9332 }
[{'concept': 'work of art'}, 'part of', {'concept': 'behavior'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:part_of ?y . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:behavior }
[]
behavior work of art
Comparative|Count over More/Less|Single entity type|Clarification
Q1571266
SYSTEM
Did you mean Ulysses S. Grant Memorial ?
(c(Q838948),P361,c(Q9332))
[ANSWER]
[{'concept': 'Q838948'}, 'P361', {'concept': 'Q9332'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:P361 ?y . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q9332 }
Did you mean Ulysses S. Grant Memorial ?
Ulysses S. Grant Memorial
[{'concept': 'work of art'}, 'part of', {'concept': 'behavior'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:part_of ?y . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:behavior }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Brevet Lt. General Winfield Scott. Could you tell me the answer for that?
(c(Q838948),P361,c(Q9332))
Q4962538
[{'concept': 'Q838948'}, 'P361', {'concept': 'Q9332'}]
[{'concept': 'work of art'}, 'part of', {'concept': 'behavior'}]
[]
SYSTEM
1
Q7600677
(c(Q838948),P361,c(Q9332))
[ANSWER]
[{'concept': 'Q838948'}, 'P361', {'concept': 'Q9332'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:P361 ?y . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q9332 }
computer graphics
1
[{'concept': 'work of art'}, 'part of', {'concept': 'behavior'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:part_of ?y . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:behavior }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q8645 Q4962538
P47 P17
Q15617994
USER
Which administrative territories are Brevet Lt. General Winfield Scott located in or are adjacent to Lanciano ?
OR((Q4962538,P17,c(Q15617994)), (Q8645,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q4962538
relation P17
action find
entity Q8645
relation P47
type Q15617994
{'OR': [['Q4962538', 'P17', {'concept': 'Q15617994'}], ['Q8645', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q4962538 property:P17 ?a } UNION { resource:Q8645 property:P47 ?a } } . ?a rdf:type ontology:Q15617994 }
Lanciano Brevet Lt. General Winfield Scott
action filter_type
action union
action find
entity Brevet Lt. General Winfield Scott
relation country
action find
entity Lanciano
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Brevet Lt. General Winfield Scott', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Lanciano', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Brevet_Lt._General_Winfield_Scott property:country ?a } UNION { resource:Lanciano property:shares_border_with ?a } } . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q51183 Q51275 Q51228 Q51200 Q51255 Q51289 Q51257 Q51265 Q51292 Q30
SYSTEM
Some of them are Atessa, Rocca San Giovanni, Frisa, Castel Frentano, Orsogna, San Vito Chietino, Paglieta, Poggiofiorito, Sant'Eusanio del Sangro, United States of America
Q51275 Q51289 Q51183 Q51265 Q51292 Q30 Q51200 Q51228 Q51308 Q51223 Q51257 Q51254 Q51255
OR((Q4962538,P17,c(Q15617994)), (Q8645,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q4962538
relation P17
action find
entity Q8645
relation P47
type Q15617994
[ANSWERS] are Brevet Lt. General Winfield Scott located in or are adjacent to Lanciano
{'OR': [['Q4962538', 'P17', {'concept': 'Q15617994'}], ['Q8645', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q4962538 property:P17 ?a } UNION { resource:Q8645 property:P47 ?a } } . ?a rdf:type ontology:Q15617994 }
Rocca San Giovanni San Vito Chietino Atessa Poggiofiorito Sant'Eusanio del Sangro United States of America Castel Frentano Frisa Treglio Fossacesia Paglieta Mozzagrogna Orsogna
Atessa, Rocca San Giovanni, Frisa, Castel Frentano, Orsogna, San Vito Chietino, Paglieta, Poggiofiorito, Sant'Eusanio del Sangro and United States of America are Brevet Lt. General Winfield Scott located in or are adjacent to Lanciano
Atessa Rocca San Giovanni Frisa Castel Frentano Orsogna San Vito Chietino Paglieta Poggiofiorito Sant'Eusanio del Sangro United States of America
action filter_type
action union
action find
entity Brevet Lt. General Winfield Scott
relation country
action find
entity Lanciano
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Brevet Lt. General Winfield Scott', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Lanciano', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Brevet_Lt._General_Winfield_Scott property:country ?a } UNION { resource:Lanciano property:shares_border_with ?a } } . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P47
Q15617994 Q56061
USER
How many administrative territories and administrative territories do that administrative territory share a border with ?
(c(Q15617994),P47,Q51292) (c(Q56061),P47,Q51292) (c(Q15617994),P47,Q51183) (c(Q56061),P47,Q51183) (c(Q15617994),P47,Q51275) (c(Q56061),P47,Q51275) (c(Q15617994),P47,Q51228) (c(Q56061),P47,Q51228) (c(Q15617994),P47,Q51200) (c(Q56061),P47,Q51200) (c(Q15617994),P47,Q51255) (c(Q56061),P47,Q51255) (c(Q15617994),P47,Q51289) (c(Q56061),P47,Q51289) (c(Q15617994),P47,Q51257) (c(Q56061),P47,Q51257) (c(Q15617994),P47,Q51265) (c(Q56061),P47,Q51265) (c(Q15617994),P47,Q51292) (c(Q56061),P47,Q51292) (c(Q15617994),P47,Q30) (c(Q56061),P47,Q30)
[{'concept': 'Q15617994'}, 'P47', 'Q51292'] [{'concept': 'Q56061'}, 'P47', 'Q51292'] [{'concept': 'Q15617994'}, 'P47', 'Q51183'] [{'concept': 'Q56061'}, 'P47', 'Q51183'] [{'concept': 'Q15617994'}, 'P47', 'Q51275'] [{'concept': 'Q56061'}, 'P47', 'Q51275'] [{'concept': 'Q15617994'}, 'P47', 'Q51228'] [{'concept': 'Q56061'}, 'P47', 'Q51228'] [{'concept': 'Q15617994'}, 'P47', 'Q51200'] [{'concept': 'Q56061'}, 'P47', 'Q51200'] [{'concept': 'Q15617994'}, 'P47', 'Q51255'] [{'concept': 'Q56061'}, 'P47', 'Q51255'] [{'concept': 'Q15617994'}, 'P47', 'Q51289'] [{'concept': 'Q56061'}, 'P47', 'Q51289'] [{'concept': 'Q15617994'}, 'P47', 'Q51257'] [{'concept': 'Q56061'}, 'P47', 'Q51257'] [{'concept': 'Q15617994'}, 'P47', 'Q51265'] [{'concept': 'Q56061'}, 'P47', 'Q51265'] [{'concept': 'Q15617994'}, 'P47', 'Q51292'] [{'concept': 'Q56061'}, 'P47', 'Q51292'] [{'concept': 'Q15617994'}, 'P47', 'Q30'] [{'concept': 'Q56061'}, 'P47', 'Q30']
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { ?z property:P47 resource:Q51292 } UNION { ?y property:P47 resource:Q51292 } UNION { ?z property:P47 resource:Q51183 } UNION { ?y property:P47 resource:Q51183 } UNION { ?z property:P47 resource:Q51275 } UNION { ?y property:P47 resource:Q51275 } UNION { ?z property:P47 resource:Q51228 } UNION { ?y property:P47 resource:Q51228 } UNION { ?z property:P47 resource:Q51200 } UNION { ?y property:P47 resource:Q51200 } UNION { ?z property:P47 resource:Q51255 } UNION { ?y property:P47 resource:Q51255 } UNION { ?z property:P47 resource:Q51289 } UNION { ?y property:P47 resource:Q51289 } UNION { ?z property:P47 resource:Q51257 } UNION { ?y property:P47 resource:Q51257 } UNION { ?z property:P47 resource:Q51265 } UNION { ?y property:P47 resource:Q51265 } UNION { ?z property:P47 resource:Q51292 } UNION { ?y property:P47 resource:Q51292 } UNION { ?z property:P47 resource:Q30 } UNION { ?y property:P47 resource:Q30 } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q56061 }
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', "Sant'Eusanio del Sangro"] [{'concept': 'administrative territorial entity'}, 'shares border with', "Sant'Eusanio del Sangro"] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Atessa'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Atessa'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Rocca San Giovanni'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Rocca San Giovanni'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Frisa'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Frisa'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Castel Frentano'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Castel Frentano'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Orsogna'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Orsogna'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'San Vito Chietino'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'San Vito Chietino'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Paglieta'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Paglieta'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Poggiofiorito'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Poggiofiorito'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', "Sant'Eusanio del Sangro"] [{'concept': 'administrative territorial entity'}, 'shares border with', "Sant'Eusanio del Sangro"] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'United States of America'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'United States of America']
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { ?z property:shares_border_with resource:Sant'Eusanio_del_Sangro } UNION { ?y property:shares_border_with resource:Sant'Eusanio_del_Sangro } UNION { ?z property:shares_border_with resource:Atessa } UNION { ?y property:shares_border_with resource:Atessa } UNION { ?z property:shares_border_with resource:Rocca_San_Giovanni } UNION { ?y property:shares_border_with resource:Rocca_San_Giovanni } UNION { ?z property:shares_border_with resource:Frisa } UNION { ?y property:shares_border_with resource:Frisa } UNION { ?z property:shares_border_with resource:Castel_Frentano } UNION { ?y property:shares_border_with resource:Castel_Frentano } UNION { ?z property:shares_border_with resource:Orsogna } UNION { ?y property:shares_border_with resource:Orsogna } UNION { ?z property:shares_border_with resource:San_Vito_Chietino } UNION { ?y property:shares_border_with resource:San_Vito_Chietino } UNION { ?z property:shares_border_with resource:Paglieta } UNION { ?y property:shares_border_with resource:Paglieta } UNION { ?z property:shares_border_with resource:Poggiofiorito } UNION { ?y property:shares_border_with resource:Poggiofiorito } UNION { ?z property:shares_border_with resource:Sant'Eusanio_del_Sangro } UNION { ?y property:shares_border_with resource:Sant'Eusanio_del_Sangro } UNION { ?z property:shares_border_with resource:United_States_of_America } UNION { ?y property:shares_border_with resource:United_States_of_America } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:administrative_territorial_entity }
[]
designation for an administrative territorial entity administrative territorial entity
Quantitative|Count|Mult. entity type|Clarification
Q51257
SYSTEM
Did you mean Paglieta ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { ?z property:P47 resource:Q51292 } UNION { ?y property:P47 resource:Q51292 } UNION { ?z property:P47 resource:Q51183 } UNION { ?y property:P47 resource:Q51183 } UNION { ?z property:P47 resource:Q51275 } UNION { ?y property:P47 resource:Q51275 } UNION { ?z property:P47 resource:Q51228 } UNION { ?y property:P47 resource:Q51228 } UNION { ?z property:P47 resource:Q51200 } UNION { ?y property:P47 resource:Q51200 } UNION { ?z property:P47 resource:Q51255 } UNION { ?y property:P47 resource:Q51255 } UNION { ?z property:P47 resource:Q51289 } UNION { ?y property:P47 resource:Q51289 } UNION { ?z property:P47 resource:Q51257 } UNION { ?y property:P47 resource:Q51257 } UNION { ?z property:P47 resource:Q51265 } UNION { ?y property:P47 resource:Q51265 } UNION { ?z property:P47 resource:Q51292 } UNION { ?y property:P47 resource:Q51292 } UNION { ?z property:P47 resource:Q30 } UNION { ?y property:P47 resource:Q30 } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q56061 }
Did you mean Paglieta ?
Paglieta
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { ?z property:shares_border_with resource:Sant'Eusanio_del_Sangro } UNION { ?y property:shares_border_with resource:Sant'Eusanio_del_Sangro } UNION { ?z property:shares_border_with resource:Atessa } UNION { ?y property:shares_border_with resource:Atessa } UNION { ?z property:shares_border_with resource:Rocca_San_Giovanni } UNION { ?y property:shares_border_with resource:Rocca_San_Giovanni } UNION { ?z property:shares_border_with resource:Frisa } UNION { ?y property:shares_border_with resource:Frisa } UNION { ?z property:shares_border_with resource:Castel_Frentano } UNION { ?y property:shares_border_with resource:Castel_Frentano } UNION { ?z property:shares_border_with resource:Orsogna } UNION { ?y property:shares_border_with resource:Orsogna } UNION { ?z property:shares_border_with resource:San_Vito_Chietino } UNION { ?y property:shares_border_with resource:San_Vito_Chietino } UNION { ?z property:shares_border_with resource:Paglieta } UNION { ?y property:shares_border_with resource:Paglieta } UNION { ?z property:shares_border_with resource:Poggiofiorito } UNION { ?y property:shares_border_with resource:Poggiofiorito } UNION { ?z property:shares_border_with resource:Sant'Eusanio_del_Sangro } UNION { ?y property:shares_border_with resource:Sant'Eusanio_del_Sangro } UNION { ?z property:shares_border_with resource:United_States_of_America } UNION { ?y property:shares_border_with resource:United_States_of_America } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Sant'Eusanio del Sangro. Could you tell me the answer for that?
(c(Q15617994),P47,Q51292) (c(Q56061),P47,Q51292) (c(Q15617994),P47,Q51183) (c(Q56061),P47,Q51183) (c(Q15617994),P47,Q51275) (c(Q56061),P47,Q51275) (c(Q15617994),P47,Q51228) (c(Q56061),P47,Q51228) (c(Q15617994),P47,Q51200) (c(Q56061),P47,Q51200) (c(Q15617994),P47,Q51255) (c(Q56061),P47,Q51255) (c(Q15617994),P47,Q51289) (c(Q56061),P47,Q51289) (c(Q15617994),P47,Q51257) (c(Q56061),P47,Q51257) (c(Q15617994),P47,Q51265) (c(Q56061),P47,Q51265) (c(Q15617994),P47,Q51292) (c(Q56061),P47,Q51292) (c(Q15617994),P47,Q30) (c(Q56061),P47,Q30)
Q51292
[{'concept': 'Q15617994'}, 'P47', 'Q51292'] [{'concept': 'Q56061'}, 'P47', 'Q51292'] [{'concept': 'Q15617994'}, 'P47', 'Q51183'] [{'concept': 'Q56061'}, 'P47', 'Q51183'] [{'concept': 'Q15617994'}, 'P47', 'Q51275'] [{'concept': 'Q56061'}, 'P47', 'Q51275'] [{'concept': 'Q15617994'}, 'P47', 'Q51228'] [{'concept': 'Q56061'}, 'P47', 'Q51228'] [{'concept': 'Q15617994'}, 'P47', 'Q51200'] [{'concept': 'Q56061'}, 'P47', 'Q51200'] [{'concept': 'Q15617994'}, 'P47', 'Q51255'] [{'concept': 'Q56061'}, 'P47', 'Q51255'] [{'concept': 'Q15617994'}, 'P47', 'Q51289'] [{'concept': 'Q56061'}, 'P47', 'Q51289'] [{'concept': 'Q15617994'}, 'P47', 'Q51257'] [{'concept': 'Q56061'}, 'P47', 'Q51257'] [{'concept': 'Q15617994'}, 'P47', 'Q51265'] [{'concept': 'Q56061'}, 'P47', 'Q51265'] [{'concept': 'Q15617994'}, 'P47', 'Q51292'] [{'concept': 'Q56061'}, 'P47', 'Q51292'] [{'concept': 'Q15617994'}, 'P47', 'Q30'] [{'concept': 'Q56061'}, 'P47', 'Q30']
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', "Sant'Eusanio del Sangro"] [{'concept': 'administrative territorial entity'}, 'shares border with', "Sant'Eusanio del Sangro"] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Atessa'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Atessa'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Rocca San Giovanni'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Rocca San Giovanni'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Frisa'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Frisa'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Castel Frentano'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Castel Frentano'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Orsogna'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Orsogna'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'San Vito Chietino'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'San Vito Chietino'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Paglieta'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Paglieta'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Poggiofiorito'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Poggiofiorito'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', "Sant'Eusanio del Sangro"] [{'concept': 'administrative territorial entity'}, 'shares border with', "Sant'Eusanio del Sangro"] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'United States of America'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'United States of America']
[]
SYSTEM
6
Q51179 Q8645 Q51183 Q51198 Q51200 Q51240
(c(Q15617994),P47,Q51292) (c(Q56061),P47,Q51292) (c(Q15617994),P47,Q51183) (c(Q56061),P47,Q51183) (c(Q15617994),P47,Q51275) (c(Q56061),P47,Q51275) (c(Q15617994),P47,Q51228) (c(Q56061),P47,Q51228) (c(Q15617994),P47,Q51200) (c(Q56061),P47,Q51200) (c(Q15617994),P47,Q51255) (c(Q56061),P47,Q51255) (c(Q15617994),P47,Q51289) (c(Q56061),P47,Q51289) (c(Q15617994),P47,Q51257) (c(Q56061),P47,Q51257) (c(Q15617994),P47,Q51265) (c(Q56061),P47,Q51265) (c(Q15617994),P47,Q51292) (c(Q56061),P47,Q51292) (c(Q15617994),P47,Q30) (c(Q56061),P47,Q30)
[ANSWER]
[{'concept': 'Q15617994'}, 'P47', 'Q51292'] [{'concept': 'Q56061'}, 'P47', 'Q51292'] [{'concept': 'Q15617994'}, 'P47', 'Q51183'] [{'concept': 'Q56061'}, 'P47', 'Q51183'] [{'concept': 'Q15617994'}, 'P47', 'Q51275'] [{'concept': 'Q56061'}, 'P47', 'Q51275'] [{'concept': 'Q15617994'}, 'P47', 'Q51228'] [{'concept': 'Q56061'}, 'P47', 'Q51228'] [{'concept': 'Q15617994'}, 'P47', 'Q51200'] [{'concept': 'Q56061'}, 'P47', 'Q51200'] [{'concept': 'Q15617994'}, 'P47', 'Q51255'] [{'concept': 'Q56061'}, 'P47', 'Q51255'] [{'concept': 'Q15617994'}, 'P47', 'Q51289'] [{'concept': 'Q56061'}, 'P47', 'Q51289'] [{'concept': 'Q15617994'}, 'P47', 'Q51257'] [{'concept': 'Q56061'}, 'P47', 'Q51257'] [{'concept': 'Q15617994'}, 'P47', 'Q51265'] [{'concept': 'Q56061'}, 'P47', 'Q51265'] [{'concept': 'Q15617994'}, 'P47', 'Q51292'] [{'concept': 'Q56061'}, 'P47', 'Q51292'] [{'concept': 'Q15617994'}, 'P47', 'Q30'] [{'concept': 'Q56061'}, 'P47', 'Q30']
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { ?z property:P47 resource:Q51292 } UNION { ?y property:P47 resource:Q51292 } UNION { ?z property:P47 resource:Q51183 } UNION { ?y property:P47 resource:Q51183 } UNION { ?z property:P47 resource:Q51275 } UNION { ?y property:P47 resource:Q51275 } UNION { ?z property:P47 resource:Q51228 } UNION { ?y property:P47 resource:Q51228 } UNION { ?z property:P47 resource:Q51200 } UNION { ?y property:P47 resource:Q51200 } UNION { ?z property:P47 resource:Q51255 } UNION { ?y property:P47 resource:Q51255 } UNION { ?z property:P47 resource:Q51289 } UNION { ?y property:P47 resource:Q51289 } UNION { ?z property:P47 resource:Q51257 } UNION { ?y property:P47 resource:Q51257 } UNION { ?z property:P47 resource:Q51265 } UNION { ?y property:P47 resource:Q51265 } UNION { ?z property:P47 resource:Q51292 } UNION { ?y property:P47 resource:Q51292 } UNION { ?z property:P47 resource:Q30 } UNION { ?y property:P47 resource:Q30 } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q56061 }
Altino, Abruzzo Lanciano Atessa Casoli Castel Frentano Guardiagrele
6
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', "Sant'Eusanio del Sangro"] [{'concept': 'administrative territorial entity'}, 'shares border with', "Sant'Eusanio del Sangro"] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Atessa'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Atessa'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Rocca San Giovanni'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Rocca San Giovanni'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Frisa'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Frisa'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Castel Frentano'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Castel Frentano'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Orsogna'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Orsogna'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'San Vito Chietino'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'San Vito Chietino'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Paglieta'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Paglieta'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Poggiofiorito'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Poggiofiorito'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', "Sant'Eusanio del Sangro"] [{'concept': 'administrative territorial entity'}, 'shares border with', "Sant'Eusanio del Sangro"] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'United States of America'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'United States of America']
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { ?z property:shares_border_with resource:Sant'Eusanio_del_Sangro } UNION { ?y property:shares_border_with resource:Sant'Eusanio_del_Sangro } UNION { ?z property:shares_border_with resource:Atessa } UNION { ?y property:shares_border_with resource:Atessa } UNION { ?z property:shares_border_with resource:Rocca_San_Giovanni } UNION { ?y property:shares_border_with resource:Rocca_San_Giovanni } UNION { ?z property:shares_border_with resource:Frisa } UNION { ?y property:shares_border_with resource:Frisa } UNION { ?z property:shares_border_with resource:Castel_Frentano } UNION { ?y property:shares_border_with resource:Castel_Frentano } UNION { ?z property:shares_border_with resource:Orsogna } UNION { ?y property:shares_border_with resource:Orsogna } UNION { ?z property:shares_border_with resource:San_Vito_Chietino } UNION { ?y property:shares_border_with resource:San_Vito_Chietino } UNION { ?z property:shares_border_with resource:Paglieta } UNION { ?y property:shares_border_with resource:Paglieta } UNION { ?z property:shares_border_with resource:Poggiofiorito } UNION { ?y property:shares_border_with resource:Poggiofiorito } UNION { ?z property:shares_border_with resource:Sant'Eusanio_del_Sangro } UNION { ?y property:shares_border_with resource:Sant'Eusanio_del_Sangro } UNION { ?z property:shares_border_with resource:United_States_of_America } UNION { ?y property:shares_border_with resource:United_States_of_America } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q103565
P190
Q56061
USER
Which administrative territory is twin city of Angarsk ?
(Q103565,P190,c(Q56061))
action filter_type
action find
entity Q103565
relation P190
type Q56061
['Q103565', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q103565 property:P190 ?r . ?r rdf:type ontology:Q56061 }
Angarsk
action filter_type
action find
entity Angarsk
relation sister city
type administrative territorial entity
['Angarsk', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Angarsk property:sister_city ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q898
SYSTEM
Omsk
Q898
(Q103565,P190,c(Q56061))
action filter_type
action find
entity Q103565
relation P190
type Q56061
[ANSWER] is twin city of Angarsk
['Q103565', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q103565 property:P190 ?r . ?r rdf:type ontology:Q56061 }
Omsk
Omsk is twin city of Angarsk
Omsk
action filter_type
action find
entity Angarsk
relation sister city
type administrative territorial entity
['Angarsk', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Angarsk property:sister_city ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q23564
Q56061
USER
And also tell me about Podgorica?
(Q23564,P190,c(Q56061))
action filter_type
action find
entity Q23564
relation P190
type Q56061
['Q23564', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q23564 property:P190 ?t . ?t rdf:type ontology:Q56061 }
Podgorica
action filter_type
action find
entity Podgorica
relation sister city
type administrative territorial entity
['Podgorica', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Podgorica property:sister_city ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q649 Q65 Q84
SYSTEM
Moscow, Los Angeles, London
Q1754 Q567755 Q3711 Q649 Q7024 Q84 Q384 Q65
(Q23564,P190,c(Q56061))
action filter_type
action find
entity Q23564
relation P190
type Q56061
[ANSWERS]
['Q23564', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q23564 property:P190 ?t . ?t rdf:type ontology:Q56061 }
Stockholm Naousa Belgrade Moscow Lugano London Skopje Los Angeles
Moscow Los Angeles London
action filter_type
action find
entity Podgorica
relation sister city
type administrative territorial entity
['Podgorica', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Podgorica property:sister_city ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]