Simple Question (Direct)
Simple Question
Q2977227
P21
Q290
USER
What is the sex of Claude Crépeau ?
(Q2977227,P21,c(Q290))
action filter_type
action find
entity Q2977227
relation P21
type Q290
['Q2977227', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q2977227 property:P21 ?c . ?c rdf:type ontology:Q290 }
Claude Crépeau
action filter_type
action find
entity Claude Crépeau
relation gender
type sex
['Claude Crépeau', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Claude_Crépeau property:gender ?c . ?c rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2977227,P21,c(Q290))
action filter_type
action find
entity Q2977227
relation P21
type Q290
The sex of Claude Crépeau is the [ANSWER]
['Q2977227', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q2977227 property:P21 ?c . ?c rdf:type ontology:Q290 }
male
The sex of Claude Crépeau is the male
male
action filter_type
action find
entity Claude Crépeau
relation gender
type sex
['Claude Crépeau', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Claude_Crépeau property:gender ?c . ?c rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2977227
P106
Q12737077
USER
What do Claude Crépeau do for a living ?
(Q2977227,P106,c(Q12737077))
action filter_type
action find
entity Q2977227
relation P106
type Q12737077
['Q2977227', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q2977227 property:P106 ?y . ?y rdf:type ontology:Q12737077 }
Claude Crépeau
action filter_type
action find
entity Claude Crépeau
relation occupation
type occupation
['Claude Crépeau', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Claude_Crépeau property:occupation ?y . ?y rdf:type ontology:occupation }
[]
occupation
Q15442776 Q81096 Q82594
SYSTEM
cryptographer, engineer, computer scientist
Q15442776 Q81096 Q82594
(Q2977227,P106,c(Q12737077))
action filter_type
action find
entity Q2977227
relation P106
type Q12737077
[ANSWERS] Claude Crépeau do for a living
['Q2977227', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q2977227 property:P106 ?y . ?y rdf:type ontology:Q12737077 }
cryptographer engineer computer scientist
Cryptographer, engineer and computer scientist Claude Crépeau do for a living
cryptographer engineer computer scientist
action filter_type
action find
entity Claude Crépeau
relation occupation
type occupation
['Claude Crépeau', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Claude_Crépeau property:occupation ?y . ?y rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q21000957
Q12737077
USER
And how about Aldrin Salamanca?
(Q21000957,P106,c(Q12737077))
action filter_type
action find
entity Q21000957
relation P106
type Q12737077
['Q21000957', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q21000957 property:P106 ?k . ?k rdf:type ontology:Q12737077 }
Aldrin Salamanca
action filter_type
action find
entity Aldrin Salamanca
relation occupation
type occupation
['Aldrin Salamanca', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Aldrin_Salamanca property:occupation ?k . ?k rdf:type ontology:occupation }
[]
occupation
Q2309784
SYSTEM
sport cyclist
Q2309784
(Q21000957,P106,c(Q12737077))
action filter_type
action find
entity Q21000957
relation P106
type Q12737077
[ANSWER]
['Q21000957', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q21000957 property:P106 ?k . ?k rdf:type ontology:Q12737077 }
sport cyclist
sport cyclist
action filter_type
action find
entity Aldrin Salamanca
relation occupation
type occupation
['Aldrin Salamanca', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Aldrin_Salamanca property:occupation ?k . ?k rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q1028181 Q81096
P106
Q502895
USER
Which people have the profession of engineer and painter ?
AND((c(Q502895),P106,Q81096), (c(Q502895),P106,Q1028181))
action filter_type
action intersection
action find_reverse
entity Q81096
relation P106
action find_reverse
entity Q1028181
relation P106
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q81096'], [{'concept': 'Q502895'}, 'P106', 'Q1028181']]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q502895 . ?q property:P106 resource:Q81096 . ?q property:P106 resource:Q1028181 }
painter engineer
action filter_type
action intersection
action find_reverse
entity engineer
relation occupation
action find_reverse
entity painter
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'engineer'], [{'concept': 'common name'}, 'occupation', 'painter']]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:common_name . ?q property:occupation resource:engineer . ?q property:occupation resource:painter }
[]
common name
Q15996935 Q10285577 Q822980 Q16031272 Q11459748 Q17319025 Q631625 Q370394 Q6278234 Q5078420
SYSTEM
Some of them are Colin Gill, Franz Keller-Leuzinger, Bernardo Buontalenti, Sebastiano Panunzi, Genpō Kojiri, Joaquín Lloréns Fernández de Cordoba, Arcangelo Guglielmelli, Charles Pellegrini, Jorge Luis Echarte, Charles Grene Ellicombe
Q23641313 Q27507 Q5981112 Q2218967 Q791170 Q5342267 Q192496 Q449779 Q4720356 Q74674 Q16151960 Q4013496 Q370567 Q357872 Q625721 Q604608 Q5076387 Q3997322 Q10285577 Q15883044 Q16070589 Q1324787 Q252041 Q1753592 Q2830797 Q18507744 Q3553568 Q631625 Q7833 Q23663392 Q18510159 Q704609 Q3108095 Q6795704 Q1065281 Q1449898 Q828733 Q3768187 Q16657946 Q7640722 Q16559816 Q4716316 Q3766062 Q506085 Q16972817 Q661452 Q329557 Q18511843 Q1637100 Q3155339 Q373508 Q5493205 Q1606016 Q3189110 Q1113061 Q513704 Q78856 Q370394 Q172117 Q809503 Q14949462 Q21467269 Q3051854 Q15819564 Q6230973 Q10390524 Q7693171 Q17319025 Q4085168 Q4538306 Q5078420 Q4464564 Q7966397 Q154338 Q519977 Q2105066 Q15996935 Q828286 Q922839 Q6278234 Q913894 Q982677 Q762 Q6285916 Q1390711 Q16268416 Q822980 Q5052174 Q3164236 Q11459748 Q16031272 Q3745322 Q5730393 Q2173389 Q10320377 Q1805696 Q3613931
AND((c(Q502895),P106,Q81096), (c(Q502895),P106,Q1028181))
action filter_type
action intersection
action find_reverse
entity Q81096
relation P106
action find_reverse
entity Q1028181
relation P106
type Q502895
[ANSWERS] have the profession of engineer and painter
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q81096'], [{'concept': 'Q502895'}, 'P106', 'Q1028181']]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q502895 . ?q property:P106 resource:Q81096 . ?q property:P106 resource:Q1028181 }
Felix Heuberger Frank Malina Ian Campbell-Gray Samuel Willenberg Gyula Basch Edward Charles Frome Robert Fulton José Luis Rodríguez Pittí Alexander Weygers Matsusaburō Yokoyama Samir Sammoun Vincenzo Rosati Jan van der Heyden Giacomo Torelli Arambilet Antonio Rivas Mercado Charles Collier Michell Pedro Nel Gómez Franz Keller-Leuzinger Dionisio Mantuano William Anderson Eladio Dieste Wolfgang von Kempelen Lorenzo Leonbruno Albanis Beaumont Alojzij Schaffenrath Valentin Bousch Arcangelo Guglielmelli Boris Vian Eugène Pertuiset Johann Baptist von Pacassi Félix Candela Giuseppe Meda Maximilian Emil Hehl Charles Lapicque Franz von Felbinger Karl Pohlke Giovanni Stefano Marucelli Fra Felice da Palermo Sunny Sanwar Giovanni Battista Marzuttini Alessandro Capra Giovan Battista Cavagna Luis Andreoni Giacomo Coltrini Gheorghe Asachi Carl Nebel Charles-Marie Caffiéri Giuseppe Pietro Bagetti Isidoro Bianchi C. D. Howe François Cammas Henri Rouart Julian Trevelyan Mariano Fortuny Wenceslas Cobergher Antonio Beduzzi Charles Pellegrini Leslie Marr Bartolomeo Neroni Simon Raab Krome Barratt Percy French Hans Tönnies John E. Weyss Vieira Lusitano Ted Ellis Joaquín Lloréns Fernández de Cordoba Thomas Burrowes Leonid Yanush Charles Grene Ellicombe Konstiantyn Trutovsky Walter Westley Russell Mathias Grünewald André Jolly Solomon Joseph Solomon Colin Gill Franz Bronstert Giacinto Platania Jorge Luis Echarte Louis Ducatel Roland Penrose Leonardo da Vinci Joseph Oberbauer Kolë Idromeno Domenico Giunti Bernardo Buontalenti Cathcart William Methven Jean-Baptiste Louis Dumas Genpō Kojiri Sebastiano Panunzi Filippo Schor Henry Winstanley Miguel Ángel de Quevedo Lucius Richard O'Brien Sébastien Leclerc Amedeo di Castellamonte
Colin Gill, Franz Keller-Leuzinger, Bernardo Buontalenti, Sebastiano Panunzi, Genpō Kojiri, Joaquín Lloréns Fernández de Cordoba, Arcangelo Guglielmelli, Charles Pellegrini, Jorge Luis Echarte and Charles Grene Ellicombe have the profession of engineer and painter
Colin Gill Franz Keller-Leuzinger Bernardo Buontalenti Sebastiano Panunzi Genpō Kojiri Joaquín Lloréns Fernández de Cordoba Arcangelo Guglielmelli Charles Pellegrini Jorge Luis Echarte Charles Grene Ellicombe
action filter_type
action intersection
action find_reverse
entity engineer
relation occupation
action find_reverse
entity painter
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'engineer'], [{'concept': 'common name'}, 'occupation', 'painter']]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:common_name . ?q property:occupation resource:engineer . ?q property:occupation resource:painter }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q15619164
USER
How many abstract beings did atleast 14 people do the dubbing for ?
(c(Q15619164),P725,c(Q502895))
action count
action atleast
action find_tuple_counts
relation P725
type Q15619164
type Q502895
value 14
[{'concept': 'Q15619164'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?p ) AS ?j ) WHERE { ?u rdf:type ontology:Q15619164 . ?p rdf:type ontology:Q502895 . ?u property:P725 ?p } GROUP BY ?u } . FILTER ( ?j >= 14 ) }
action count
action atleast
action find_tuple_counts
relation voice actor
type abstract being
type common name
value 14
[{'concept': 'abstract being'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?p ) AS ?j ) WHERE { ?u rdf:type ontology:abstract_being . ?p rdf:type ontology:common_name . ?u property:voice_actor ?p } GROUP BY ?u } . FILTER ( ?j >= 14 ) }
[]
common name abstract being
SYSTEM
1
Q5409355
(c(Q15619164),P725,c(Q502895))
action count
action atleast
action find_tuple_counts
relation P725
type Q15619164
type Q502895
value 14
[ANSWER]
[{'concept': 'Q15619164'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?p ) AS ?j ) WHERE { ?u rdf:type ontology:Q15619164 . ?p rdf:type ontology:Q502895 . ?u property:P725 ?p } GROUP BY ?u } . FILTER ( ?j >= 14 ) }
Fluttershy
1
action count
action atleast
action find_tuple_counts
relation voice actor
type abstract being
type common name
value 14
[{'concept': 'abstract being'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?p ) AS ?j ) WHERE { ?u rdf:type ontology:abstract_being . ?p rdf:type ontology:common_name . ?u property:voice_actor ?p } GROUP BY ?u } . FILTER ( ?j >= 14 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments do min number of people know to play ?
(c(Q502895),P1303,Q3623688)
action argmin
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?f ) { SELECT DISTINCT ?s ( COUNT ( ?m ) AS ?y ) WHERE { ?m property:P1303 ?s . ?s rdf:type ontology:Q34379 . ?m rdf:type ontology:Q502895 } GROUP BY ?s } } . { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?g ) WHERE { ?q rdf:type ontology:Q34379 . ?i rdf:type ontology:Q502895 . ?i property:P1303 ?q } GROUP BY ?q } . FILTER ( ?g = ?f ) }
action argmin
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?f ) { SELECT DISTINCT ?s ( COUNT ( ?m ) AS ?y ) WHERE { ?m property:instrument ?s . ?s rdf:type ontology:musical_instrument . ?m rdf:type ontology:common_name } GROUP BY ?s } } . { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?g ) WHERE { ?q rdf:type ontology:musical_instrument . ?i rdf:type ontology:common_name . ?i property:instrument ?q } GROUP BY ?q } . FILTER ( ?g = ?f ) }
[]
musical instrument common name
Q1879664 Q748455 Q173453
SYSTEM
spoon, cajón, wind instrument
Q1879664 Q748455 Q173453
(c(Q502895),P1303,Q3623688)
action argmin
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
Min number of people know about [ANSWERS]
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?f ) { SELECT DISTINCT ?s ( COUNT ( ?m ) AS ?y ) WHERE { ?m property:P1303 ?s . ?s rdf:type ontology:Q34379 . ?m rdf:type ontology:Q502895 } GROUP BY ?s } } . { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?g ) WHERE { ?q rdf:type ontology:Q34379 . ?i rdf:type ontology:Q502895 . ?i property:P1303 ?q } GROUP BY ?q } . FILTER ( ?g = ?f ) }
spoon cajón wind instrument
Min number of people know about spoon, cajón and wind instrument
spoon cajón wind instrument
action argmin
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?f ) { SELECT DISTINCT ?s ( COUNT ( ?m ) AS ?y ) WHERE { ?m property:instrument ?s . ?s rdf:type ontology:musical_instrument . ?m rdf:type ontology:common_name } GROUP BY ?s } } . { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?g ) WHERE { ?q rdf:type ontology:musical_instrument . ?i rdf:type ontology:common_name . ?i property:instrument ?q } GROUP BY ?q } . FILTER ( ?g = ?f ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5078420
P921
Q191067
USER
Which article was mainly based on Charles Grene Ellicombe ?
(c(Q191067),P921,Q5078420)
action filter_type
action find_reverse
entity Q5078420
relation P921
type Q191067
[{'concept': 'Q191067'}, 'P921', 'Q5078420']
SELECT DISTINCT ?r WHERE { ?r property:P921 resource:Q5078420 . ?r rdf:type ontology:Q191067 }
Charles Grene Ellicombe
action filter_type
action find_reverse
entity Charles Grene Ellicombe
relation main subject
type article
[{'concept': 'article'}, 'main subject', 'Charles Grene Ellicombe']
SELECT DISTINCT ?r WHERE { ?r property:main_subject resource:Charles_Grene_Ellicombe . ?r rdf:type ontology:article }
[]
article
Q19093915
SYSTEM
Ellicombe, Charles Grene (DNB00)
Q19093915
(c(Q191067),P921,Q5078420)
action filter_type
action find_reverse
entity Q5078420
relation P921
type Q191067
[ANSWER] was mainly based on Charles Grene Ellicombe
[{'concept': 'Q191067'}, 'P921', 'Q5078420']
SELECT DISTINCT ?r WHERE { ?r property:P921 resource:Q5078420 . ?r rdf:type ontology:Q191067 }
Ellicombe, Charles Grene (DNB00)
Ellicombe, Charles Grene (DNB00) was mainly based on Charles Grene Ellicombe
Ellicombe, Charles Grene (DNB00)
action filter_type
action find_reverse
entity Charles Grene Ellicombe
relation main subject
type article
[{'concept': 'article'}, 'main subject', 'Charles Grene Ellicombe']
SELECT DISTINCT ?r WHERE { ?r property:main_subject resource:Charles_Grene_Ellicombe . ?r rdf:type ontology:article }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q19093915
P1433
Q5292
USER
Which encyclopedia has that article in it ?
(Q19093915,P1433,c(Q5292))
action filter_type
action find
entity Q19093915
relation P1433
type Q5292
['Q19093915', 'P1433', {'concept': 'Q5292'}]
SELECT DISTINCT ?j WHERE { resource:Q19093915 property:P1433 ?j . ?j rdf:type ontology:Q5292 }
Ellicombe, Charles Grene (DNB00)
action filter_type
action find
entity Ellicombe, Charles Grene (DNB00)
relation published in
type encyclopedia
['Ellicombe, Charles Grene (DNB00)', 'published in', {'concept': 'encyclopedia'}]
SELECT DISTINCT ?j WHERE { resource:Ellicombe,_Charles_Grene_(DNB00) property:published_in ?j . ?j rdf:type ontology:encyclopedia }
[]
encyclopedia
Q15987216
SYSTEM
Dictionary of National Biography (1885-1900)
Q15987216
(Q19093915,P1433,c(Q5292))
action filter_type
action find
entity Q19093915
relation P1433
type Q5292
[ANSWER] has that article in it
['Q19093915', 'P1433', {'concept': 'Q5292'}]
SELECT DISTINCT ?j WHERE { resource:Q19093915 property:P1433 ?j . ?j rdf:type ontology:Q5292 }
Dictionary of National Biography (1885-1900)
Dictionary of National Biography (1885-1900) has that article in it
Dictionary of National Biography (1885-1900)
action filter_type
action find
entity Ellicombe, Charles Grene (DNB00)
relation published in
type encyclopedia
['Ellicombe, Charles Grene (DNB00)', 'published in', {'concept': 'encyclopedia'}]
SELECT DISTINCT ?j WHERE { resource:Ellicombe,_Charles_Grene_(DNB00) property:published_in ?j . ?j rdf:type ontology:encyclopedia }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1598998 Q2977227
P19 P937
Q56061
USER
Which administrative territories were Claude Crépeau born at or are the work locations of Heinrich Strunk ?
OR((Q2977227,P19,c(Q56061)), (Q1598998,P937,c(Q56061)))
action filter_type
action union
action find
entity Q2977227
relation P19
action find
entity Q1598998
relation P937
type Q56061
{'OR': [['Q2977227', 'P19', {'concept': 'Q56061'}], ['Q1598998', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q2977227 property:P19 ?s } UNION { resource:Q1598998 property:P937 ?s } } . ?s rdf:type ontology:Q56061 }
Heinrich Strunk Claude Crépeau
action filter_type
action union
action find
entity Claude Crépeau
relation place of birth
action find
entity Heinrich Strunk
relation work location
type administrative territorial entity
{'OR': [['Claude Crépeau', 'place of birth', {'concept': 'administrative territorial entity'}], ['Heinrich Strunk', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Claude_Crépeau property:place_of_birth ?s } UNION { resource:Heinrich_Strunk property:work_location ?s } } . ?s rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q340 Q1718
SYSTEM
Montreal, Düsseldorf
Q340 Q1718
OR((Q2977227,P19,c(Q56061)), (Q1598998,P937,c(Q56061)))
action filter_type
action union
action find
entity Q2977227
relation P19
action find
entity Q1598998
relation P937
type Q56061
Claude Crépeau were born at or are the work locations of Heinrich Strunk in [ANSWERS]
{'OR': [['Q2977227', 'P19', {'concept': 'Q56061'}], ['Q1598998', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q2977227 property:P19 ?s } UNION { resource:Q1598998 property:P937 ?s } } . ?s rdf:type ontology:Q56061 }
Montreal Düsseldorf
Claude Crépeau were born at or are the work locations of Heinrich Strunk in Montreal and Düsseldorf
Montreal Düsseldorf
action filter_type
action union
action find
entity Claude Crépeau
relation place of birth
action find
entity Heinrich Strunk
relation work location
type administrative territorial entity
{'OR': [['Claude Crépeau', 'place of birth', {'concept': 'administrative territorial entity'}], ['Heinrich Strunk', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Claude_Crépeau property:place_of_birth ?s } UNION { resource:Heinrich_Strunk property:work_location ?s } } . ?s rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q340 Q1718
P190
Q13220204
USER
Which administrative country subdivisions are twin cities of those administrative territories ?
(Q340,P190,c(Q13220204)) (Q1718,P190,c(Q13220204))
action filter_type
action find
entity prev_answer
relation P190
type Q13220204
['Q340', 'P190', {'concept': 'Q13220204'}] ['Q1718', 'P190', {'concept': 'Q13220204'}]
SELECT DISTINCT ?c WHERE { ?s property:P190 ?c . VALUES ( ?s ) { ( resource:Q340 ) ( resource:Q1718 ) } . ?c rdf:type ontology:Q13220204 }
Montreal Düsseldorf
action filter_type
action find
entity prev_answer
relation sister city
type second-level administrative country subdivision
['Montreal', 'sister city', {'concept': 'second-level administrative country subdivision'}] ['Düsseldorf', 'sister city', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?c WHERE { ?s property:sister_city ?c . VALUES ( ?s ) { ( resource:Montreal ) ( resource:Düsseldorf ) } . ?c rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q7903 Q101341
SYSTEM
Casablanca, Lillehammer
Q7903 Q101341
(Q340,P190,c(Q13220204)) (Q1718,P190,c(Q13220204))
action filter_type
action find
entity prev_answer
relation P190
type Q13220204
[ANSWERS] are twin cities of those administrative territories
['Q340', 'P190', {'concept': 'Q13220204'}] ['Q1718', 'P190', {'concept': 'Q13220204'}]
SELECT DISTINCT ?c WHERE { ?s property:P190 ?c . VALUES ( ?s ) { ( resource:Q340 ) ( resource:Q1718 ) } . ?c rdf:type ontology:Q13220204 }
Casablanca Lillehammer
Casablanca and Lillehammer are twin cities of those administrative territories
Casablanca Lillehammer
action filter_type
action find
entity prev_answer
relation sister city
type second-level administrative country subdivision
['Montreal', 'sister city', {'concept': 'second-level administrative country subdivision'}] ['Düsseldorf', 'sister city', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?c WHERE { ?s property:sister_city ?c . VALUES ( ?s ) { ( resource:Montreal ) ( resource:Düsseldorf ) } . ?c rdf:type ontology:second-level_administrative_country_subdivision }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q340
P138
Q8502
USER
Which mountain is the etymology of Montreal ?
(Q340,P138,c(Q8502))
action filter_type
action find
entity Q340
relation P138
type Q8502
['Q340', 'P138', {'concept': 'Q8502'}]
SELECT DISTINCT ?n WHERE { resource:Q340 property:P138 ?n . ?n rdf:type ontology:Q8502 }
Montreal
action filter_type
action find
entity Montreal
relation named after
type mountain
['Montreal', 'named after', {'concept': 'mountain'}]
SELECT DISTINCT ?n WHERE { resource:Montreal property:named_after ?n . ?n rdf:type ontology:mountain }
[]
mountain
Q1757764
SYSTEM
Mount Royal
Q1757764
(Q340,P138,c(Q8502))
action filter_type
action find
entity Q340
relation P138
type Q8502
Montreal [ANSWER] is the etymology of Montreal
['Q340', 'P138', {'concept': 'Q8502'}]
SELECT DISTINCT ?n WHERE { resource:Q340 property:P138 ?n . ?n rdf:type ontology:Q8502 }
Mount Royal
Montreal Mount Royal is the etymology of Montreal
Mount Royal
action filter_type
action find
entity Montreal
relation named after
type mountain
['Montreal', 'named after', {'concept': 'mountain'}]
SELECT DISTINCT ?n WHERE { resource:Montreal property:named_after ?n . ?n rdf:type ontology:mountain }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q340
P47
Q56061
USER
Which administrative territories are bordered by Montreal ?
(Q340,P47,c(Q56061))
action filter_type
action find
entity Q340
relation P47
type Q56061
['Q340', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q56061 . resource:Q340 property:P47 ?g }
Montreal
action filter_type
action find
entity Montreal
relation shares border with
type administrative territorial entity
['Montreal', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:administrative_territorial_entity . resource:Montreal property:shares_border_with ?g }
[]
administrative territorial entity
Q139040 Q139101
SYSTEM
Montréal-Est, Hampstead
Q139040 Q139101
(Q340,P47,c(Q56061))
action filter_type
action find
entity Q340
relation P47
type Q56061
[ANSWERS] are bordered by Montreal
['Q340', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q56061 . resource:Q340 property:P47 ?g }
Montréal-Est Hampstead
Montréal-Est and Hampstead are bordered by Montreal
Montréal-Est Hampstead
action filter_type
action find
entity Montreal
relation shares border with
type administrative territorial entity
['Montreal', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:administrative_territorial_entity . resource:Montreal property:shares_border_with ?g }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q4356881
Q56061
USER
And also tell me about Solberga?
(Q4356881,P47,c(Q56061))
action filter_type
action find
entity Q4356881
relation P47
type Q56061
['Q4356881', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q56061 . resource:Q4356881 property:P47 ?f }
Solberga
action filter_type
action find
entity Solberga
relation shares border with
type administrative territorial entity
['Solberga', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:administrative_territorial_entity . resource:Solberga property:shares_border_with ?f }
[]
administrative territorial entity
Q255019 Q2552334 Q4357634
SYSTEM
Älvsjö, Fruängen, Västberga
Q4357031 Q2552334 Q255019 Q4357634 Q4357719 Q3354868 Q4357625
(Q4356881,P47,c(Q56061))
action filter_type
action find
entity Q4356881
relation P47
type Q56061
[ANSWERS]
['Q4356881', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q56061 . resource:Q4356881 property:P47 ?f }
Liseberg Fruängen Älvsjö Västberga Östberga Hägerstensåsen Långbro
Älvsjö Fruängen Västberga
action filter_type
action find
entity Solberga
relation shares border with
type administrative territorial entity
['Solberga', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:administrative_territorial_entity . resource:Solberga property:shares_border_with ?f }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q255019 Q2552334 Q4357634
P47
Q486972
USER
Which human settlements have an adjacent border with Älvsjö, Fruängen and Västberga ?
(c(Q486972),P47,Q255019) (c(Q486972),P47,Q2552334) (c(Q486972),P47,Q4357634)
action union
action filter_type
action find
entity Q255019
relation P47
type Q486972
action filter_type
action find
entity Q2552334
relation P47
type Q486972
action filter_type
action find
entity Q4357634
relation P47
type Q486972
[{'concept': 'Q486972'}, 'P47', 'Q255019'] [{'concept': 'Q486972'}, 'P47', 'Q2552334'] [{'concept': 'Q486972'}, 'P47', 'Q4357634']
SELECT DISTINCT ?m WHERE { { resource:Q255019 property:P47 ?m . ?m rdf:type ontology:Q486972 } UNION { resource:Q2552334 property:P47 ?m . ?m rdf:type ontology:Q486972 } }
Älvsjö Fruängen Västberga
action union
action filter_type
action find
entity Älvsjö
relation shares border with
type human settlement
action filter_type
action find
entity Fruängen
relation shares border with
type human settlement
action filter_type
action find
entity Västberga
relation shares border with
type human settlement
[{'concept': 'human settlement'}, 'shares border with', 'Älvsjö'] [{'concept': 'human settlement'}, 'shares border with', 'Fruängen'] [{'concept': 'human settlement'}, 'shares border with', 'Västberga']
SELECT DISTINCT ?m WHERE { { resource:Älvsjö property:shares_border_with ?m . ?m rdf:type ontology:human_settlement } UNION { resource:Fruängen property:shares_border_with ?m . ?m rdf:type ontology:human_settlement } }
[]
human settlement
Q4356881
SYSTEM
Solberga
Q4356881
(c(Q486972),P47,Q255019) (c(Q486972),P47,Q2552334) (c(Q486972),P47,Q4357634)
action union
action filter_type
action find
entity Q255019
relation P47
type Q486972
action filter_type
action find
entity Q2552334
relation P47
type Q486972
action filter_type
action find
entity Q4357634
relation P47
type Q486972
[ANSWER] have an adjacent border with Älvsjö, Fruängen and Västberga
[{'concept': 'Q486972'}, 'P47', 'Q255019'] [{'concept': 'Q486972'}, 'P47', 'Q2552334'] [{'concept': 'Q486972'}, 'P47', 'Q4357634']
SELECT DISTINCT ?m WHERE { { resource:Q255019 property:P47 ?m . ?m rdf:type ontology:Q486972 } UNION { resource:Q2552334 property:P47 ?m . ?m rdf:type ontology:Q486972 } }
Solberga
Solberga have an adjacent border with Älvsjö, Fruängen and Västberga
Solberga
action union
action filter_type
action find
entity Älvsjö
relation shares border with
type human settlement
action filter_type
action find
entity Fruängen
relation shares border with
type human settlement
action filter_type
action find
entity Västberga
relation shares border with
type human settlement
[{'concept': 'human settlement'}, 'shares border with', 'Älvsjö'] [{'concept': 'human settlement'}, 'shares border with', 'Fruängen'] [{'concept': 'human settlement'}, 'shares border with', 'Västberga']
SELECT DISTINCT ?m WHERE { { resource:Älvsjö property:shares_border_with ?m . ?m rdf:type ontology:human_settlement } UNION { resource:Fruängen property:shares_border_with ?m . ?m rdf:type ontology:human_settlement } }
[]