Simple Question (Direct)
Simple Question
Q65749
P937
Q515
USER
Where did Karl Julius Beloch work ?
(Q65749,P937,c(Q515))
action filter_type
action find
entity Q65749
relation P937
type Q515
['Q65749', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q515 . resource:Q65749 property:P937 ?x }
Karl Julius Beloch
action filter_type
action find
entity Karl Julius Beloch
relation work location
type city
['Karl Julius Beloch', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:city . resource:Karl_Julius_Beloch property:work_location ?x }
[]
city
Q2079
SYSTEM
Leipzig
Q2079
(Q65749,P937,c(Q515))
action filter_type
action find
entity Q65749
relation P937
type Q515
Karl Julius Beloch worked in [ANSWER]
['Q65749', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q515 . resource:Q65749 property:P937 ?x }
Leipzig
Karl Julius Beloch worked in Leipzig
Leipzig
action filter_type
action find
entity Karl Julius Beloch
relation work location
type city
['Karl Julius Beloch', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:city . resource:Karl_Julius_Beloch property:work_location ?x }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q65749
P27
Q1048835
USER
Which political territory is the native country of that person ?
(Q2079,P27,c(Q1048835))
action filter_type
action find
entity Q65749
relation P27
type Q1048835
['Q2079', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q1048835 . resource:Q65749 property:P27 ?g }
Karl Julius Beloch
action filter_type
action find
entity Karl Julius Beloch
relation country of citizenship
type political territorial entity
['Leipzig', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:political_territorial_entity . resource:Karl_Julius_Beloch property:country_of_citizenship ?g }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q2079,P27,c(Q1048835))
action filter_type
action find
entity Q65749
relation P27
type Q1048835
[ANSWER] is the native country of that person
['Q2079', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q1048835 . resource:Q65749 property:P27 ?g }
Germany
Germany is the native country of that person
Germany
action filter_type
action find
entity Karl Julius Beloch
relation country of citizenship
type political territorial entity
['Leipzig', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:political_territorial_entity . resource:Karl_Julius_Beloch property:country_of_citizenship ?g }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q341777
P609
Q515 Q83620 Q34442
USER
Which cities are the terminus locations of more number of thoroughfares and roads than Čáslav ?
(c(Q83620)|c(Q34442),P609,c(Q515))
action greater
action union
action find_reverse_tuple_counts
relation P609
type Q515
type Q83620
action find_reverse_tuple_counts
relation P609
type Q515
type Q34442
action count
action filter_multi_types
action find_reverse
entity Q341777
relation P609
type Q83620
type Q34442
[[{'concept': 'Q83620'}, {'concept': 'Q34442'}], 'P609', {'concept': 'Q515'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?s ) AS ?b ) WHERE { { ?s property:P609 ?z . ?z rdf:type ontology:Q515 . ?s rdf:type ontology:Q83620 } UNION { ?s property:P609 ?z . ?z rdf:type ontology:Q515 . ?s rdf:type ontology:Q34442 } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) WHERE { ?c property:P609 resource:Q341777 . { VALUES ( ?a ) { ( ontology:Q83620 ) ( ontology:Q34442 ) } . ?c rdf:type ?a } } } . FILTER ( ?b > ?j ) }
Čáslav
action greater
action union
action find_reverse_tuple_counts
relation terminus location
type city
type thoroughfare
action find_reverse_tuple_counts
relation terminus location
type city
type road
action count
action filter_multi_types
action find_reverse
entity Čáslav
relation terminus location
type thoroughfare
type road
[[{'concept': 'thoroughfare'}, {'concept': 'road'}], 'terminus location', {'concept': 'city'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?s ) AS ?b ) WHERE { { ?s property:terminus_location ?z . ?z rdf:type ontology:city . ?s rdf:type ontology:thoroughfare } UNION { ?s property:terminus_location ?z . ?z rdf:type ontology:city . ?s rdf:type ontology:road } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) WHERE { ?c property:terminus_location resource:Čáslav . { VALUES ( ?a ) { ( ontology:thoroughfare ) ( ontology:road ) } . ?c rdf:type ?a } } } . FILTER ( ?b > ?j ) }
[]
city thoroughfare road
Q14960 Q11736 Q182852
SYSTEM
Brno, Tianjin, Kunming
Q182852 Q58560 Q23768 Q11736 Q211243 Q75110 Q183584 Q14960
(c(Q83620)|c(Q34442),P609,c(Q515))
action greater
action union
action find_reverse_tuple_counts
relation P609
type Q515
type Q83620
action find_reverse_tuple_counts
relation P609
type Q515
type Q34442
action count
action filter_multi_types
action find_reverse
entity Q341777
relation P609
type Q83620
type Q34442
[ANSWERS] are the terminus locations of more number of thoroughfares and roads than Čáslav
[[{'concept': 'Q83620'}, {'concept': 'Q34442'}], 'P609', {'concept': 'Q515'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?s ) AS ?b ) WHERE { { ?s property:P609 ?z . ?z rdf:type ontology:Q515 . ?s rdf:type ontology:Q83620 } UNION { ?s property:P609 ?z . ?z rdf:type ontology:Q515 . ?s rdf:type ontology:Q34442 } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) WHERE { ?c property:P609 resource:Q341777 . { VALUES ( ?a ) { ( ontology:Q83620 ) ( ontology:Q34442 ) } . ?c rdf:type ?a } } } . FILTER ( ?b > ?j ) }
Kunming Qinhuangdao Las Vegas Tianjin Yinchuan Dandong Lanzhou Brno
Brno, Tianjin and Kunming are the terminus locations of more number of thoroughfares and roads than Čáslav
Brno Tianjin Kunming
action greater
action union
action find_reverse_tuple_counts
relation terminus location
type city
type thoroughfare
action find_reverse_tuple_counts
relation terminus location
type city
type road
action count
action filter_multi_types
action find_reverse
entity Čáslav
relation terminus location
type thoroughfare
type road
[[{'concept': 'thoroughfare'}, {'concept': 'road'}], 'terminus location', {'concept': 'city'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?s ) AS ?b ) WHERE { { ?s property:terminus_location ?z . ?z rdf:type ontology:city . ?s rdf:type ontology:thoroughfare } UNION { ?s property:terminus_location ?z . ?z rdf:type ontology:city . ?s rdf:type ontology:road } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) WHERE { ?c property:terminus_location resource:Čáslav . { VALUES ( ?a ) { ( ontology:thoroughfare ) ( ontology:road ) } . ?c rdf:type ?a } } } . FILTER ( ?b > ?j ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q360643
P609
Q515 Q83620 Q34442
USER
And also tell me about Suzhou, Anhui?
(c(Q83620)|c(Q34442),P609,c(Q515))
action greater
action union
action find_reverse_tuple_counts
relation P609
type Q515
type Q83620
action find_reverse_tuple_counts
relation P609
type Q515
type Q34442
action count
action filter_multi_types
action find_reverse
entity Q360643
relation P609
type Q83620
type Q34442
[[{'concept': 'Q83620'}, {'concept': 'Q34442'}], 'P609', {'concept': 'Q515'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?w ) AS ?l ) WHERE { ?w rdf:type ?y . VALUES ( ?y ) { ( ontology:Q83620 ) ( ontology:Q34442 ) } } GROUP BY ?u } . FILTER ( ?l > ?x ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?x ) WHERE { ?c property:P609 resource:Q360643 . { { ?c rdf:type ontology:Q83620 } UNION { ?c rdf:type ontology:Q34442 } } } } }
Suzhou, Anhui
action greater
action union
action find_reverse_tuple_counts
relation terminus location
type city
type thoroughfare
action find_reverse_tuple_counts
relation terminus location
type city
type road
action count
action filter_multi_types
action find_reverse
entity Suzhou, Anhui
relation terminus location
type thoroughfare
type road
[[{'concept': 'thoroughfare'}, {'concept': 'road'}], 'terminus location', {'concept': 'city'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?w ) AS ?l ) WHERE { ?w rdf:type ?y . VALUES ( ?y ) { ( ontology:thoroughfare ) ( ontology:road ) } } GROUP BY ?u } . FILTER ( ?l > ?x ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?x ) WHERE { ?c property:terminus_location resource:Suzhou,_Anhui . { { ?c rdf:type ontology:thoroughfare } UNION { ?c rdf:type ontology:road } } } } }
[]
city thoroughfare road
Q14960 Q11736 Q182852
SYSTEM
Brno, Tianjin, Kunming
Q182852 Q58560 Q23768 Q11736 Q211243 Q75110 Q183584 Q14960
(c(Q83620)|c(Q34442),P609,c(Q515))
action greater
action union
action find_reverse_tuple_counts
relation P609
type Q515
type Q83620
action find_reverse_tuple_counts
relation P609
type Q515
type Q34442
action count
action filter_multi_types
action find_reverse
entity Q360643
relation P609
type Q83620
type Q34442
[ANSWERS]
[[{'concept': 'Q83620'}, {'concept': 'Q34442'}], 'P609', {'concept': 'Q515'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?w ) AS ?l ) WHERE { ?w rdf:type ?y . VALUES ( ?y ) { ( ontology:Q83620 ) ( ontology:Q34442 ) } } GROUP BY ?u } . FILTER ( ?l > ?x ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?x ) WHERE { ?c property:P609 resource:Q360643 . { { ?c rdf:type ontology:Q83620 } UNION { ?c rdf:type ontology:Q34442 } } } } }
Kunming Qinhuangdao Las Vegas Tianjin Yinchuan Dandong Lanzhou Brno
Brno Tianjin Kunming
action greater
action union
action find_reverse_tuple_counts
relation terminus location
type city
type thoroughfare
action find_reverse_tuple_counts
relation terminus location
type city
type road
action count
action filter_multi_types
action find_reverse
entity Suzhou, Anhui
relation terminus location
type thoroughfare
type road
[[{'concept': 'thoroughfare'}, {'concept': 'road'}], 'terminus location', {'concept': 'city'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?w ) AS ?l ) WHERE { ?w rdf:type ?y . VALUES ( ?y ) { ( ontology:thoroughfare ) ( ontology:road ) } } GROUP BY ?u } . FILTER ( ?l > ?x ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?x ) WHERE { ?c property:terminus_location resource:Suzhou,_Anhui . { { ?c rdf:type ontology:thoroughfare } UNION { ?c rdf:type ontology:road } } } } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P159
Q515 Q895526 Q874405
USER
Which cities are the headquarters of max number of authority organs or social groups located ?
(c(Q895526)|c(Q874405),P159,c(Q515))
action argmax
action union
action find_reverse_tuple_counts
relation P159
type Q515
type Q895526
action find_reverse_tuple_counts
relation P159
type Q515
type Q874405
[[{'concept': 'Q895526'}, {'concept': 'Q874405'}], 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?w ) { SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) ?a WHERE { ?t rdf:type ?v . VALUES ( ?v ) { ( ontology:Q895526 ) ( ontology:Q874405 ) } } GROUP BY ?a } } . FILTER ( ?x = ?w ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?x ) ?r WHERE { VALUES ( ?b ) { ( ontology:Q895526 ) ( ontology:Q874405 ) } . ?i rdf:type ?b } GROUP BY ?r } }
action argmax
action union
action find_reverse_tuple_counts
relation headquarters location
type city
type authority organ
action find_reverse_tuple_counts
relation headquarters location
type city
type social group
[[{'concept': 'authority organ'}, {'concept': 'social group'}], 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?w ) { SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) ?a WHERE { ?t rdf:type ?v . VALUES ( ?v ) { ( ontology:authority_organ ) ( ontology:social_group ) } } GROUP BY ?a } } . FILTER ( ?x = ?w ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?x ) ?r WHERE { VALUES ( ?b ) { ( ontology:authority_organ ) ( ontology:social_group ) } . ?i rdf:type ?b } GROUP BY ?r } }
[]
city authority organ social group
Q1362
SYSTEM
Islamabad
Q1362
(c(Q895526)|c(Q874405),P159,c(Q515))
action argmax
action union
action find_reverse_tuple_counts
relation P159
type Q515
type Q895526
action find_reverse_tuple_counts
relation P159
type Q515
type Q874405
[ANSWER] is the headquarters of max number of authority organs or social groups located
[[{'concept': 'Q895526'}, {'concept': 'Q874405'}], 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?w ) { SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) ?a WHERE { ?t rdf:type ?v . VALUES ( ?v ) { ( ontology:Q895526 ) ( ontology:Q874405 ) } } GROUP BY ?a } } . FILTER ( ?x = ?w ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?x ) ?r WHERE { VALUES ( ?b ) { ( ontology:Q895526 ) ( ontology:Q874405 ) } . ?i rdf:type ?b } GROUP BY ?r } }
Islamabad
Islamabad is the headquarters of max number of authority organs or social groups located
Islamabad
action argmax
action union
action find_reverse_tuple_counts
relation headquarters location
type city
type authority organ
action find_reverse_tuple_counts
relation headquarters location
type city
type social group
[[{'concept': 'authority organ'}, {'concept': 'social group'}], 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?w ) { SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) ?a WHERE { ?t rdf:type ?v . VALUES ( ?v ) { ( ontology:authority_organ ) ( ontology:social_group ) } } GROUP BY ?a } } . FILTER ( ?x = ?w ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?x ) ?r WHERE { VALUES ( ?b ) { ( ontology:authority_organ ) ( ontology:social_group ) } . ?i rdf:type ?b } GROUP BY ?r } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q14960
P190
Q56061
USER
Which administrative territories are the sister cities of Brno ?
(Q14960,P190,c(Q56061))
action filter_type
action find
entity Q14960
relation P190
type Q56061
['Q14960', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q56061 . resource:Q14960 property:P190 ?x }
Brno
action filter_type
action find
entity Brno
relation sister city
type administrative territorial entity
['Brno', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:administrative_territorial_entity . resource:Brno property:sister_city ?x }
[]
administrative territorial entity
Q647 Q1741 Q13362
SYSTEM
Rennes, Vienna, Ferrara
Q1741 Q647 Q39121 Q803 Q4656 Q1022 Q13362 Q1780 Q25331 Q42308 Q3426 Q4115712 Q459 Q16557
(Q14960,P190,c(Q56061))
action filter_type
action find
entity Q14960
relation P190
type Q56061
[ANSWERS] are the sister cities of Brno
['Q14960', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q56061 . resource:Q14960 property:P190 ?x }
Vienna Rennes Leeds Utrecht Pula Stuttgart Ferrara Bratislava Odense Kharkiv Voronezh Kaunas Plovdiv Dallas
Rennes, Vienna and Ferrara are the sister cities of Brno
Rennes Vienna Ferrara
action filter_type
action find
entity Brno
relation sister city
type administrative territorial entity
['Brno', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:administrative_territorial_entity . resource:Brno property:sister_city ?x }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q647 Q1741 Q13362
P17
Q15617994
USER
Which administrative territories are those administrative territories located in ?
(Q647,P17,c(Q15617994)) (Q1741,P17,c(Q15617994)) (Q13362,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
['Q647', 'P17', {'concept': 'Q15617994'}] ['Q1741', 'P17', {'concept': 'Q15617994'}] ['Q13362', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q15617994 . VALUES ( ?c ) { ( resource:Q1741 ) ( resource:Q647 ) ( resource:Q39121 ) } . ?c property:P17 ?u }
Rennes Vienna Ferrara
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Rennes', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Vienna', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Ferrara', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?c ) { ( resource:Vienna ) ( resource:Rennes ) ( resource:Leeds ) } . ?c property:country ?u }
[]
designation for an administrative territorial entity
Q38 Q142 Q153136
SYSTEM
Italy, France, Habsburg Empire
Q142 Q47261 Q153136 Q38
(Q647,P17,c(Q15617994)) (Q1741,P17,c(Q15617994)) (Q13362,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
Those administrative territories are located in [ANSWERS]
['Q647', 'P17', {'concept': 'Q15617994'}] ['Q1741', 'P17', {'concept': 'Q15617994'}] ['Q13362', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q15617994 . VALUES ( ?c ) { ( resource:Q1741 ) ( resource:Q647 ) ( resource:Q39121 ) } . ?c property:P17 ?u }
France Duchy of Bavaria Habsburg Empire Italy
Those administrative territories are located in Italy, France and Habsburg Empire
Italy France Habsburg Empire
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Rennes', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Vienna', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Ferrara', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?c ) { ( resource:Vienna ) ( resource:Rennes ) ( resource:Leeds ) } . ?c property:country ?u }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q142
P1313
Q12737077
USER
Which occupation serves as the political office that is fulfilled by the head of the government of France ?
(Q142,P1313,c(Q12737077))
action filter_type
action find
entity Q142
relation P1313
type Q12737077
['Q142', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q142 property:P1313 ?i . ?i rdf:type ontology:Q12737077 }
France
action filter_type
action find
entity France
relation office held by head of government
type occupation
['France', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:France property:office_held_by_head_of_government ?i . ?i rdf:type ontology:occupation }
[]
occupation
Q1587677
SYSTEM
Prime Minister of France
Q1587677
(Q142,P1313,c(Q12737077))
action filter_type
action find
entity Q142
relation P1313
type Q12737077
The [ANSWER] serves as the political office that is fulfilled by the head of the government of France
['Q142', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q142 property:P1313 ?i . ?i rdf:type ontology:Q12737077 }
Prime Minister of France
The Prime Minister of France serves as the political office that is fulfilled by the head of the government of France
Prime Minister of France
action filter_type
action find
entity France
relation office held by head of government
type occupation
['France', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:France property:office_held_by_head_of_government ?i . ?i rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q142
P138
Q874405
USER
Which social group is the etymology of that administrative territory ?
(Q1587677,P138,c(Q874405))
action filter_type
action find
entity Q142
relation P138
type Q874405
['Q1587677', 'P138', {'concept': 'Q874405'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q874405 . resource:Q142 property:P138 ?b }
France
action filter_type
action find
entity France
relation named after
type social group
['Prime Minister of France', 'named after', {'concept': 'social group'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:social_group . resource:France property:named_after ?b }
[]
social group
Q43482
SYSTEM
Franks
Q43482
(Q1587677,P138,c(Q874405))
action filter_type
action find
entity Q142
relation P138
type Q874405
[ANSWER] is the etymology of that administrative territory
['Q1587677', 'P138', {'concept': 'Q874405'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q874405 . resource:Q142 property:P138 ?b }
Franks
Franks is the etymology of that administrative territory
Franks
action filter_type
action find
entity France
relation named after
type social group
['Prime Minister of France', 'named after', {'concept': 'social group'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:social_group . resource:France property:named_after ?b }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q142
P47
Q15617994
USER
Which administrative territories have an adjacent border with France ?
(c(Q15617994),P47,Q142)
action filter_type
action find
entity Q142
relation P47
type Q15617994
[{'concept': 'Q15617994'}, 'P47', 'Q142']
SELECT DISTINCT ?z WHERE { resource:Q142 property:P47 ?z . ?z rdf:type ontology:Q15617994 }
France
action filter_type
action find
entity France
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'France']
SELECT DISTINCT ?z WHERE { resource:France property:shares_border_with ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q155 Q145
SYSTEM
Italy, Brazil, United Kingdom
Q717 Q145 Q155 Q730 Q29999 Q228 Q32 Q31 Q29 Q39 Q38
(c(Q15617994),P47,Q142)
action filter_type
action find
entity Q142
relation P47
type Q15617994
[ANSWERS] have an adjacent border with France
[{'concept': 'Q15617994'}, 'P47', 'Q142']
SELECT DISTINCT ?z WHERE { resource:Q142 property:P47 ?z . ?z rdf:type ontology:Q15617994 }
Venezuela United Kingdom Brazil Suriname Kingdom of the Netherlands Andorra Luxembourg Belgium Spain Switzerland Italy
Italy, Brazil and United Kingdom have an adjacent border with France
Italy Brazil United Kingdom
action filter_type
action find
entity France
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'France']
SELECT DISTINCT ?z WHERE { resource:France property:shares_border_with ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q38 Q155 Q145
P30
Q2221906
USER
Which geographic locations are Italy, Brazil and United Kingdom a part of ?
(Q38,P30,c(Q2221906)) (Q155,P30,c(Q2221906)) (Q145,P30,c(Q2221906))
action union
action filter_type
action find
entity Q38
relation P30
type Q2221906
action filter_type
action find
entity Q155
relation P30
type Q2221906
action filter_type
action find
entity Q145
relation P30
type Q2221906
['Q38', 'P30', {'concept': 'Q2221906'}] ['Q155', 'P30', {'concept': 'Q2221906'}] ['Q145', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?n WHERE { VALUES ( ?a ) { ( resource:Q38 ) ( resource:Q155 ) } . ?a property:P30 ?n }
Italy Brazil United Kingdom
action union
action filter_type
action find
entity Italy
relation continent
type geographic location
action filter_type
action find
entity Brazil
relation continent
type geographic location
action filter_type
action find
entity United Kingdom
relation continent
type geographic location
['Italy', 'continent', {'concept': 'geographic location'}] ['Brazil', 'continent', {'concept': 'geographic location'}] ['United Kingdom', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?n WHERE { VALUES ( ?a ) { ( resource:Italy ) ( resource:Brazil ) } . ?a property:continent ?n }
[]
geographic location
Q46 Q18 Q46
SYSTEM
Europe for 1st, 3rd, South America for 2nd
Q46 Q18 Q46
(Q38,P30,c(Q2221906)) (Q155,P30,c(Q2221906)) (Q145,P30,c(Q2221906))
action union
action filter_type
action find
entity Q38
relation P30
type Q2221906
action filter_type
action find
entity Q155
relation P30
type Q2221906
action filter_type
action find
entity Q145
relation P30
type Q2221906
[ANSWERS]
['Q38', 'P30', {'concept': 'Q2221906'}] ['Q155', 'P30', {'concept': 'Q2221906'}] ['Q145', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?n WHERE { VALUES ( ?a ) { ( resource:Q38 ) ( resource:Q155 ) } . ?a property:P30 ?n }
Europe South America Europe
Are Europe, South America and Europe are Italy, Brazil and United Kingdom a part of
Europe South America Europe
action union
action filter_type
action find
entity Italy
relation continent
type geographic location
action filter_type
action find
entity Brazil
relation continent
type geographic location
action filter_type
action find
entity United Kingdom
relation continent
type geographic location
['Italy', 'continent', {'concept': 'geographic location'}] ['Brazil', 'continent', {'concept': 'geographic location'}] ['United Kingdom', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?n WHERE { VALUES ( ?a ) { ( resource:Italy ) ( resource:Brazil ) } . ?a property:continent ?n }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q155
P495
Q9143
USER
What originated in Brazil ?
(c(Q9143),P495,Q155)
action filter_type
action find_reverse
entity Q155
relation P495
type Q9143
[{'concept': 'Q9143'}, 'P495', 'Q155']
SELECT DISTINCT ?g WHERE { ?g property:P495 resource:Q155 . ?g rdf:type ontology:Q9143 }
Brazil
action filter_type
action find_reverse
entity Brazil
relation country of origin
type programming language
[{'concept': 'programming language'}, 'country of origin', 'Brazil']
SELECT DISTINCT ?g WHERE { ?g property:country_of_origin resource:Brazil . ?g rdf:type ontology:programming_language }
[]
programming language
Q207316
SYSTEM
Lua
Q207316
(c(Q9143),P495,Q155)
action filter_type
action find_reverse
entity Q155
relation P495
type Q9143
[ANSWER] originated in Brazil
[{'concept': 'Q9143'}, 'P495', 'Q155']
SELECT DISTINCT ?g WHERE { ?g property:P495 resource:Q155 . ?g rdf:type ontology:Q9143 }
Lua
Lua originated in Brazil
Lua
action filter_type
action find_reverse
entity Brazil
relation country of origin
type programming language
[{'concept': 'programming language'}, 'country of origin', 'Brazil']
SELECT DISTINCT ?g WHERE { ?g property:country_of_origin resource:Brazil . ?g rdf:type ontology:programming_language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q155
P194
Q1752346
USER
Which assembly is the legislative body for Brazil ?
(Q155,P194,c(Q1752346))
action filter_type
action find
entity Q155
relation P194
type Q1752346
['Q155', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?l WHERE { resource:Q155 property:P194 ?l . ?l rdf:type ontology:Q1752346 }
Brazil
action filter_type
action find
entity Brazil
relation legislative body
type assembly
['Brazil', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?l WHERE { resource:Brazil property:legislative_body ?l . ?l rdf:type ontology:assembly }
[]
assembly
Q949699
SYSTEM
National Congress of Brasil
Q949699
(Q155,P194,c(Q1752346))
action filter_type
action find
entity Q155
relation P194
type Q1752346
[ANSWER] is the legislative body for Brazil
['Q155', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?l WHERE { resource:Q155 property:P194 ?l . ?l rdf:type ontology:Q1752346 }
National Congress of Brasil
National Congress of Brasil is the legislative body for Brazil
National Congress of Brasil
action filter_type
action find
entity Brazil
relation legislative body
type assembly
['Brazil', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?l WHERE { resource:Brazil property:legislative_body ?l . ?l rdf:type ontology:assembly }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q750
Q1752346
USER
And what about Bolivia?
(Q750,P194,c(Q1752346))
action filter_type
action find
entity Q750
relation P194
type Q1752346
['Q750', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?v WHERE { resource:Q750 property:P194 ?v . ?v rdf:type ontology:Q1752346 }
Bolivia
action filter_type
action find
entity Bolivia
relation legislative body
type assembly
['Bolivia', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?v WHERE { resource:Bolivia property:legislative_body ?v . ?v rdf:type ontology:assembly }
[]
assembly
Q1968458
SYSTEM
Plurinational Legislative Assembly
Q1968458
(Q750,P194,c(Q1752346))
action filter_type
action find
entity Q750
relation P194
type Q1752346
[ANSWER]
['Q750', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?v WHERE { resource:Q750 property:P194 ?v . ?v rdf:type ontology:Q1752346 }
Plurinational Legislative Assembly
Plurinational Legislative Assembly
action filter_type
action find
entity Bolivia
relation legislative body
type assembly
['Bolivia', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?v WHERE { resource:Bolivia property:legislative_body ?v . ?v rdf:type ontology:assembly }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P194
Q1752346 Q15617994
USER
How many administrative territories have atleast 2 assemblies as their representative body ?
(c(Q15617994),P194,c(Q1752346))
action count
action atleast
action find_tuple_counts
relation P194
type Q15617994
type Q1752346
value 2
[{'concept': 'Q15617994'}, 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?l ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?b ) WHERE { ?y rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q1752346 . ?y property:P194 ?z } GROUP BY ?y } . FILTER ( ?b >= 2 ) }
action count
action atleast
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type assembly
value 2
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?l ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?b ) WHERE { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:assembly . ?y property:legislative_body ?z } GROUP BY ?y } . FILTER ( ?b >= 2 ) }
[]
assembly designation for an administrative territorial entity
SYSTEM
2
Q794 Q6465
(c(Q15617994),P194,c(Q1752346))
action count
action atleast
action find_tuple_counts
relation P194
type Q15617994
type Q1752346
value 2
[ANSWER]
[{'concept': 'Q15617994'}, 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?l ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?b ) WHERE { ?y rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q1752346 . ?y property:P194 ?z } GROUP BY ?y } . FILTER ( ?b >= 2 ) }
Iran department of France
2
action count
action atleast
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type assembly
value 2
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?l ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?b ) WHERE { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:assembly . ?y property:legislative_body ?z } GROUP BY ?y } . FILTER ( ?b >= 2 ) }
[]