Simple Question (Direct)
Simple Question
Q3875860
P21
Q290
USER
Which sex does Niccolò Fabi have ?
(Q3875860,P21,c(Q290))
action filter_type
action find
entity Q3875860
relation P21
type Q290
['Q3875860', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q3875860 property:P21 ?r . ?r rdf:type ontology:Q290 }
Niccolò Fabi
action filter_type
action find
entity Niccolò Fabi
relation gender
type sex
['Niccolò Fabi', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Niccolò_Fabi property:gender ?r . ?r rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3875860,P21,c(Q290))
action filter_type
action find
entity Q3875860
relation P21
type Q290
Niccolò Fabi has a [ANSWER]
['Q3875860', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q3875860 property:P21 ?r . ?r rdf:type ontology:Q290 }
male
Niccolò Fabi has a male
male
action filter_type
action find
entity Niccolò Fabi
relation gender
type sex
['Niccolò Fabi', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Niccolò_Fabi property:gender ?r . ?r rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6581097
P180
Q340169
USER
Which media depicts that sex ?
(c(Q340169),P180,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P180
type Q340169
[{'concept': 'Q340169'}, 'P180', 'Q6581097']
SELECT DISTINCT ?z WHERE { ?z property:P180 resource:Q6581097 . ?z rdf:type ontology:Q340169 }
male
action filter_type
action find_reverse
entity male
relation depicts
type media
[{'concept': 'media'}, 'depicts', 'male']
SELECT DISTINCT ?z WHERE { ?z property:depicts resource:male . ?z rdf:type ontology:media }
[]
media
Q20020115
SYSTEM
Portrait of a Young Man
Q20020115
(c(Q340169),P180,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P180
type Q340169
[ANSWER] depicts that sex
[{'concept': 'Q340169'}, 'P180', 'Q6581097']
SELECT DISTINCT ?z WHERE { ?z property:P180 resource:Q6581097 . ?z rdf:type ontology:Q340169 }
Portrait of a Young Man
Portrait of a Young Man depicts that sex
Portrait of a Young Man
action filter_type
action find_reverse
entity male
relation depicts
type media
[{'concept': 'media'}, 'depicts', 'male']
SELECT DISTINCT ?z WHERE { ?z property:depicts resource:male . ?z rdf:type ontology:media }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q16658565
P608
Q464980 Q340169
USER
How many exhibitions were around the same number of medias exhibited at as 1824 Paris Salon ?
(c(Q340169),P608,c(Q464980))
action count
action approx
action find_reverse_tuple_counts
relation P608
type Q464980
type Q340169
action count
action filter_type
action find
entity Q16658565
relation P608
type Q464980
[{'concept': 'Q340169'}, 'P608', {'concept': 'Q464980'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?b ) WHERE { ?x property:P608 ?n . ?n rdf:type ontology:Q464980 . ?x rdf:type ontology:Q340169 } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { ?h rdf:type ontology:Q464980 . resource:Q16658565 property:P608 ?h } } . FILTER ( ?b = ?z ) }
1824 Paris Salon
action count
action approx
action find_reverse_tuple_counts
relation exhibition history
type exhibition
type media
action count
action filter_type
action find
entity 1824 Paris Salon
relation exhibition history
type exhibition
[{'concept': 'media'}, 'exhibition history', {'concept': 'exhibition'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?b ) WHERE { ?x property:exhibition_history ?n . ?n rdf:type ontology:exhibition . ?x rdf:type ontology:media } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { ?h rdf:type ontology:exhibition . resource:1824_Paris_Salon property:exhibition_history ?h } } . FILTER ( ?b = ?z ) }
[]
exhibition media
SYSTEM
61
Q16643903 Q16977023 Q1114964 Q250578 Q16632328 Q15620849 Q24237549 Q688909 Q15298209 Q17456865 Q16736000 Q15273842 Q283454 Q753646 Q16658565 Q14619895 Q14619896 Q25175731 Q15118718 Q16659398 Q2186413 Q17451431 Q17374739 Q207420 Q329154 Q19057071 Q17093682 Q15925025 Q15732002 Q19205977 Q1054110 Q15731376 Q18429168 Q25147506 Q19347412 Q18759729 Q25141765 Q18918844 Q15620425 Q17274259 Q3610454 Q16659396 Q2925732 Q5393515 Q19807149 Q20020104 Q15087813 Q15726974 Q1165690 Q15274985 Q15710932 Q15617708 Q23699261 Q16499412 Q15311595 Q23113720 Q15727592 Q285406 Q18745579 Q2977833 Q15711352
(c(Q340169),P608,c(Q464980))
action count
action approx
action find_reverse_tuple_counts
relation P608
type Q464980
type Q340169
action count
action filter_type
action find
entity Q16658565
relation P608
type Q464980
[ANSWER]
[{'concept': 'Q340169'}, 'P608', {'concept': 'Q464980'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?b ) WHERE { ?x property:P608 ?n . ?n rdf:type ontology:Q464980 . ?x rdf:type ontology:Q340169 } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { ?h rdf:type ontology:Q464980 . resource:Q16658565 property:P608 ?h } } . FILTER ( ?b = ?z ) }
1881 Paris Salon Landscape Reunited：Huang Gongwang and "Dwelling in the Fuchun Mountains＂ Exposition Universelle of 1855 Panama–Pacific International Exposition 1869 Paris Salon 1865 Paris Salon Velázquez Armory Show Salon of 1789 Salon of 1875 Salon of 1795 1808 Salon 1929 Barcelona International Exposition Exposition Universelle of 1900 1824 Paris Salon Mona Lisa by Leonardo da Vinci The Mona Lisa by Leonardo da Vinci J.C. Dahl in Denmark Salon of 1831 1843 Paris Salon Exposition universelle et internationale Salon of 1845 Salon of 1842 1939 New York World's Fair Degenerate Art Exhibition Fantastische Welten Albrecht Altdorfer oder das Expressive in der Kunst um 1500 Salon of 1879 Salon of 1791 Salon of 1833 1817 Salon Expo 2005 1814 Salon Modern Times: Photography in the 20th Century J.C. Dahl i Italien 1820-1821 Salon of 1891 Hundred Masterpieces in Parisian Collections 1883 Johan Christian Dahl 1788-1857. Jubilee Exhibition 1988 Renaissance Faces salon of 1861 Salon of 1890 0.10 Exhibition 1846 Paris Salon British Institution Ibero-American Exposition of 1929 Dahl and Friedrich. Romantic Landscapes Velazquez a Roma. Velazquez e Roma. Mona Lisa Exhibition Salon of 1785 Exposition Universelle of 1878 Dominique-Vivant Denon: l'oeil de Napoléo 1852 Paris Salon 1806 Salon William Blake's 1809 exhibition 1868 Paris Salon Renoir Made in Amsterdam - 100 years in 100 works of art Paris Salon of 1863 World's Columbian Exposition Salon de 1837 Claude Monet (1840-1926) 1848 Paris Salon
61
action count
action approx
action find_reverse_tuple_counts
relation exhibition history
type exhibition
type media
action count
action filter_type
action find
entity 1824 Paris Salon
relation exhibition history
type exhibition
[{'concept': 'media'}, 'exhibition history', {'concept': 'exhibition'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?b ) WHERE { ?x property:exhibition_history ?n . ?n rdf:type ontology:exhibition . ?x rdf:type ontology:media } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { ?h rdf:type ontology:exhibition . resource:1824_Paris_Salon property:exhibition_history ?h } } . FILTER ( ?b = ?z ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1893
P466
Q483110
USER
Which stadia are inhabited by Bologna F.C. 1909 ?
(c(Q483110),P466,Q1893)
action filter_type
action find_reverse
entity Q1893
relation P466
type Q483110
[{'concept': 'Q483110'}, 'P466', 'Q1893']
SELECT DISTINCT ?v WHERE { ?v property:P466 resource:Q1893 . ?v rdf:type ontology:Q483110 }
Bologna F.C. 1909
action filter_type
action find_reverse
entity Bologna F.C. 1909
relation occupant
type stadium
[{'concept': 'stadium'}, 'occupant', 'Bologna F.C. 1909']
SELECT DISTINCT ?v WHERE { ?v property:occupant resource:Bologna_F.C._1909 . ?v rdf:type ontology:stadium }
[]
stadium
Q757182 Q3967887
SYSTEM
Stadio Renato Dall'Ara, Stadio Sterlino
Q757182 Q3967887
(c(Q483110),P466,Q1893)
action filter_type
action find_reverse
entity Q1893
relation P466
type Q483110
[ANSWERS] are inhabited by Bologna F.C. 1909
[{'concept': 'Q483110'}, 'P466', 'Q1893']
SELECT DISTINCT ?v WHERE { ?v property:P466 resource:Q1893 . ?v rdf:type ontology:Q483110 }
Stadio Renato Dall'Ara Stadio Sterlino
Stadio Renato Dall'Ara and Stadio Sterlino are inhabited by Bologna F.C. 1909
Stadio Renato Dall'Ara Stadio Sterlino
action filter_type
action find_reverse
entity Bologna F.C. 1909
relation occupant
type stadium
[{'concept': 'stadium'}, 'occupant', 'Bologna F.C. 1909']
SELECT DISTINCT ?v WHERE { ?v property:occupant resource:Bologna_F.C._1909 . ?v rdf:type ontology:stadium }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1893
P118
Q623109
USER
What does Bologna F.C. 1909 play in ?
(Q1893,P118,c(Q623109))
action filter_type
action find
entity Q1893
relation P118
type Q623109
['Q1893', 'P118', {'concept': 'Q623109'}]
SELECT DISTINCT ?e WHERE { resource:Q1893 property:P118 ?e . ?e rdf:type ontology:Q623109 }
Bologna F.C. 1909
action filter_type
action find
entity Bologna F.C. 1909
relation league
type sports league
['Bologna F.C. 1909', 'league', {'concept': 'sports league'}]
SELECT DISTINCT ?e WHERE { resource:Bologna_F.C._1909 property:league ?e . ?e rdf:type ontology:sports_league }
[]
sports league
Q15804
SYSTEM
Serie A
Q15804
(Q1893,P118,c(Q623109))
action filter_type
action find
entity Q1893
relation P118
type Q623109
Bologna F.C. 1909 plays in [ANSWER]
['Q1893', 'P118', {'concept': 'Q623109'}]
SELECT DISTINCT ?e WHERE { resource:Q1893 property:P118 ?e . ?e rdf:type ontology:Q623109 }
Serie A
Bologna F.C. 1909 plays in Serie A
Serie A
action filter_type
action find
entity Bologna F.C. 1909
relation league
type sports league
['Bologna F.C. 1909', 'league', {'concept': 'sports league'}]
SELECT DISTINCT ?e WHERE { resource:Bologna_F.C._1909 property:league ?e . ?e rdf:type ontology:sports_league }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15804
P17
Q15617994
USER
Which administrative territory is that sports league a part of ?
(Q15804,P17,c(Q15617994))
action filter_type
action find
entity Q15804
relation P17
type Q15617994
['Q15804', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q15804 property:P17 ?u . ?u rdf:type ontology:Q15617994 }
Serie A
action filter_type
action find
entity Serie A
relation country
type designation for an administrative territorial entity
['Serie A', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Serie_A property:country ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q15804,P17,c(Q15617994))
action filter_type
action find
entity Q15804
relation P17
type Q15617994
The [ANSWER] is that sports league a part of
['Q15804', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q15804 property:P17 ?u . ?u rdf:type ontology:Q15617994 }
Italy
The Italy is that sports league a part of
Italy
action filter_type
action find
entity Serie A
relation country
type designation for an administrative territorial entity
['Serie A', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Serie_A property:country ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q38
P6
Q502895
USER
What people are that administrative territory the head of goverment of ?
(Q38,P6,c(Q502895))
action filter_type
action find
entity Q38
relation P6
type Q502895
['Q38', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q38 property:P6 ?u . ?u rdf:type ontology:Q502895 }
Italy
action filter_type
action find
entity Italy
relation head of government
type common name
['Italy', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Italy property:head_of_government ?u . ?u rdf:type ontology:common_name }
[]
common name
Q47563 Q674957
SYSTEM
Matteo Renzi, Enrico Letta
Q47563 Q674957
(Q38,P6,c(Q502895))
action filter_type
action find
entity Q38
relation P6
type Q502895
[ANSWERS] are that administrative territory the head of goverment of
['Q38', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q38 property:P6 ?u . ?u rdf:type ontology:Q502895 }
Matteo Renzi Enrico Letta
Matteo Renzi and Enrico Letta are that administrative territory the head of goverment of
Matteo Renzi Enrico Letta
action filter_type
action find
entity Italy
relation head of government
type common name
['Italy', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Italy property:head_of_government ?u . ?u rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q47563 Q674957
P19
Q56061
USER
Which administrative territories are the birthplace of those people ?
(Q47563,P19,c(Q56061)) (Q674957,P19,c(Q56061))
action filter_type
action find
entity prev_answer
relation P19
type Q56061
['Q47563', 'P19', {'concept': 'Q56061'}] ['Q674957', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q56061 . ?t property:P19 ?l . VALUES ( ?t ) { ( resource:Q47563 ) ( resource:Q674957 ) } }
Matteo Renzi Enrico Letta
action filter_type
action find
entity prev_answer
relation place of birth
type administrative territorial entity
['Matteo Renzi', 'place of birth', {'concept': 'administrative territorial entity'}] ['Enrico Letta', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:administrative_territorial_entity . ?t property:place_of_birth ?l . VALUES ( ?t ) { ( resource:Matteo_Renzi ) ( resource:Enrico_Letta ) } }
[]
administrative territorial entity
Q2044 Q13375
SYSTEM
Florence, Pisa
Q2044 Q13375
(Q47563,P19,c(Q56061)) (Q674957,P19,c(Q56061))
action filter_type
action find
entity prev_answer
relation P19
type Q56061
[ANSWERS] are the birthplace of those people
['Q47563', 'P19', {'concept': 'Q56061'}] ['Q674957', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q56061 . ?t property:P19 ?l . VALUES ( ?t ) { ( resource:Q47563 ) ( resource:Q674957 ) } }
Florence Pisa
Florence and Pisa are the birthplace of those people
Florence Pisa
action filter_type
action find
entity prev_answer
relation place of birth
type administrative territorial entity
['Matteo Renzi', 'place of birth', {'concept': 'administrative territorial entity'}] ['Enrico Letta', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:administrative_territorial_entity . ?t property:place_of_birth ?l . VALUES ( ?t ) { ( resource:Matteo_Renzi ) ( resource:Enrico_Letta ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2044
P30
Q2221906
USER
Where is that administrative territory located ?
(Q2044,P30,c(Q2221906))
action filter_type
action find
entity Q2044
relation P30
type Q2221906
['Q2044', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?p WHERE { resource:Q2044 property:P30 ?p . ?p rdf:type ontology:Q2221906 }
Florence
action filter_type
action find
entity Florence
relation continent
type geographic location
['Florence', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?p WHERE { resource:Florence property:continent ?p . ?p rdf:type ontology:geographic_location }
[]
geographic location
Clarification for simple ques.
Q2044
SYSTEM
Did you mean Florence ?
Q2044 Q13375
(Q2044,P30,c(Q2221906)) (Q13375,P30,c(Q2221906))
[ANSWER]
['Q2044', 'P30', {'concept': 'Q2221906'}] ['Q13375', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?p WHERE { resource:Q2044 property:P30 ?p . ?p rdf:type ontology:Q2221906 }
Florence Pisa
Did you mean Florence ?
Florence
['Florence', 'continent', {'concept': 'geographic location'}] ['Pisa', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?p WHERE { resource:Florence property:continent ?p . ?p rdf:type ontology:geographic_location }
[]
Simple Question (Coreferenced)
USER
Yes
(Q2044,P30,c(Q2221906))
['Q2044', 'P30', {'concept': 'Q2221906'}]
['Florence', 'continent', {'concept': 'geographic location'}]
[]
Q46
SYSTEM
Europe
Q46
(Q2044,P30,c(Q2221906))
action filter_type
action find
entity Q2044
relation P30
type Q2221906
That administrative territory is located in [ANSWER]
['Q2044', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?p WHERE { resource:Q2044 property:P30 ?p . ?p rdf:type ontology:Q2221906 }
Europe
That administrative territory is located in Europe
Europe
action filter_type
action find
entity Florence
relation continent
type geographic location
['Florence', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?p WHERE { resource:Florence property:continent ?p . ?p rdf:type ontology:geographic_location }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P84
Q4830453 Q502895 Q483110
USER
Which stadia were designed by max number of business enterprises or people ?
(c(Q483110),P84,c(Q4830453)|c(Q502895))
action argmax
action union
action find_tuple_counts
relation P84
type Q483110
type Q4830453
action find_tuple_counts
relation P84
type Q483110
type Q502895
[{'concept': 'Q483110'}, 'P84', [{'concept': 'Q4830453'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?z ) { SELECT DISTINCT ( COUNT ( ?k ) AS ?s ) ?e WHERE { { ?e property:P84 ?k . ?k rdf:type ontology:Q4830453 . ?e rdf:type ontology:Q483110 } UNION { ?e property:P84 ?k . ?e rdf:type ontology:Q483110 . ?k rdf:type ontology:Q502895 } } GROUP BY ?e } } . FILTER ( ?o = ?z ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?o ) ?y WHERE { VALUES ( ?t ) { ( ontology:Q4830453 ) ( ontology:Q502895 ) } . ?j rdf:type ?t } GROUP BY ?y } }
action argmax
action union
action find_tuple_counts
relation architect
type stadium
type business enterprise
action find_tuple_counts
relation architect
type stadium
type common name
[{'concept': 'stadium'}, 'architect', [{'concept': 'business enterprise'}, {'concept': 'common name'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?z ) { SELECT DISTINCT ( COUNT ( ?k ) AS ?s ) ?e WHERE { { ?e property:architect ?k . ?k rdf:type ontology:business_enterprise . ?e rdf:type ontology:stadium } UNION { ?e property:architect ?k . ?e rdf:type ontology:stadium . ?k rdf:type ontology:common_name } } GROUP BY ?e } } . FILTER ( ?o = ?z ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?o ) ?y WHERE { VALUES ( ?t ) { ( ontology:business_enterprise ) ( ontology:common_name ) } . ?j rdf:type ?t } GROUP BY ?y } }
[]
business enterprise common name stadium
Q62149
SYSTEM
Juventus Stadium
Q62149
(c(Q483110),P84,c(Q4830453)|c(Q502895))
action argmax
action union
action find_tuple_counts
relation P84
type Q483110
type Q4830453
action find_tuple_counts
relation P84
type Q483110
type Q502895
[ANSWER] was designed by max number of business enterprises or people
[{'concept': 'Q483110'}, 'P84', [{'concept': 'Q4830453'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?z ) { SELECT DISTINCT ( COUNT ( ?k ) AS ?s ) ?e WHERE { { ?e property:P84 ?k . ?k rdf:type ontology:Q4830453 . ?e rdf:type ontology:Q483110 } UNION { ?e property:P84 ?k . ?e rdf:type ontology:Q483110 . ?k rdf:type ontology:Q502895 } } GROUP BY ?e } } . FILTER ( ?o = ?z ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?o ) ?y WHERE { VALUES ( ?t ) { ( ontology:Q4830453 ) ( ontology:Q502895 ) } . ?j rdf:type ?t } GROUP BY ?y } }
Juventus Stadium
Juventus Stadium was designed by max number of business enterprises or people
Juventus Stadium
action argmax
action union
action find_tuple_counts
relation architect
type stadium
type business enterprise
action find_tuple_counts
relation architect
type stadium
type common name
[{'concept': 'stadium'}, 'architect', [{'concept': 'business enterprise'}, {'concept': 'common name'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?z ) { SELECT DISTINCT ( COUNT ( ?k ) AS ?s ) ?e WHERE { { ?e property:architect ?k . ?k rdf:type ontology:business_enterprise . ?e rdf:type ontology:stadium } UNION { ?e property:architect ?k . ?e rdf:type ontology:stadium . ?k rdf:type ontology:common_name } } GROUP BY ?e } } . FILTER ( ?o = ?z ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?o ) ?y WHERE { VALUES ( ?t ) { ( ontology:business_enterprise ) ( ontology:common_name ) } . ?j rdf:type ?t } GROUP BY ?y } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2044
P47
Q15617994
USER
Which administrative territories are bordered by Florence ?
(Q2044,P47,c(Q15617994))
action filter_type
action find
entity Q2044
relation P47
type Q15617994
['Q2044', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q2044 property:P47 ?q . ?q rdf:type ontology:Q15617994 }
Florence
action filter_type
action find
entity Florence
relation shares border with
type designation for an administrative territorial entity
['Florence', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Florence property:shares_border_with ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q82636 Q82842 Q82712
SYSTEM
Campi Bisenzio, Scandicci, Impruneta
Q82612 Q82712 Q82636 Q82865 Q82842 Q82670
(Q2044,P47,c(Q15617994))
action filter_type
action find
entity Q2044
relation P47
type Q15617994
[ANSWERS] are bordered by Florence
['Q2044', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q2044 property:P47 ?q . ?q rdf:type ontology:Q15617994 }
Bagno a Ripoli Impruneta Campi Bisenzio Sesto Fiorentino Scandicci Fiesole
Campi Bisenzio, Scandicci and Impruneta are bordered by Florence
Campi Bisenzio Scandicci Impruneta
action filter_type
action find
entity Florence
relation shares border with
type designation for an administrative territorial entity
['Florence', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Florence property:shares_border_with ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]