Simple Question (Direct)
Simple Question
Q7769062
P495
Q15617994
USER
Where did The Three Passions originate ?
(Q7769062,P495,c(Q15617994))
action filter_type
action find
entity Q7769062
relation P495
type Q15617994
['Q7769062', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q7769062 property:P495 ?u . ?u rdf:type ontology:Q15617994 }
The Three Passions
action filter_type
action find
entity The Three Passions
relation country of origin
type designation for an administrative territorial entity
['The Three Passions', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:The_Three_Passions property:country_of_origin ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q7769062,P495,c(Q15617994))
action filter_type
action find
entity Q7769062
relation P495
type Q15617994
The Three Passions originated from [ANSWER]
['Q7769062', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q7769062 property:P495 ?u . ?u rdf:type ontology:Q15617994 }
United Kingdom
The Three Passions originated from United Kingdom
United Kingdom
action filter_type
action find
entity The Three Passions
relation country of origin
type designation for an administrative territorial entity
['The Three Passions', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:The_Three_Passions property:country_of_origin ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7769062
P364
Q11028
USER
What is the original language of creation of that work of art ?
(Q145,P364,c(Q11028))
action filter_type
action find
entity Q7769062
relation P364
type Q11028
['Q145', 'P364', {'concept': 'Q11028'}]
SELECT DISTINCT ?d WHERE { resource:Q7769062 property:P364 ?d . ?d rdf:type ontology:Q11028 }
The Three Passions
action filter_type
action find
entity The Three Passions
relation original language of work
type information
['United Kingdom', 'original language of work', {'concept': 'information'}]
SELECT DISTINCT ?d WHERE { resource:The_Three_Passions property:original_language_of_work ?d . ?d rdf:type ontology:information }
[]
information
Q21686005
SYSTEM
n/a (silent film)
Q21686005
(Q145,P364,c(Q11028))
action filter_type
action find
entity Q7769062
relation P364
type Q11028
The original language of creation of that work of art is a [ANSWER]
['Q145', 'P364', {'concept': 'Q11028'}]
SELECT DISTINCT ?d WHERE { resource:Q7769062 property:P364 ?d . ?d rdf:type ontology:Q11028 }
n/a (silent film)
The original language of creation of that work of art is a n/a (silent film)
n/a (silent film)
action filter_type
action find
entity The Three Passions
relation original language of work
type information
['United Kingdom', 'original language of work', {'concept': 'information'}]
SELECT DISTINCT ?d WHERE { resource:The_Three_Passions property:original_language_of_work ?d . ?d rdf:type ontology:information }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7769062
P57
Q502895
USER
Who was The Three Passions directed by ?
(Q7769062,P57,c(Q502895))
action filter_type
action find
entity Q7769062
relation P57
type Q502895
['Q7769062', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q7769062 property:P57 ?g . ?g rdf:type ontology:Q502895 }
The Three Passions
action filter_type
action find
entity The Three Passions
relation director
type common name
['The Three Passions', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:The_Three_Passions property:director ?g . ?g rdf:type ontology:common_name }
[]
common name
Q1750696
SYSTEM
Rex Ingram
Q1750696
(Q7769062,P57,c(Q502895))
action filter_type
action find
entity Q7769062
relation P57
type Q502895
By The Three Passions was directed by [ANSWER]
['Q7769062', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q7769062 property:P57 ?g . ?g rdf:type ontology:Q502895 }
Rex Ingram
By The Three Passions was directed by Rex Ingram
Rex Ingram
action filter_type
action find
entity The Three Passions
relation director
type common name
['The Three Passions', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:The_Three_Passions property:director ?g . ?g rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7769062
P58
Q502895
USER
Who wrote the screenplay for The Three Passions ?
(Q7769062,P58,c(Q502895))
action filter_type
action find
entity Q7769062
relation P58
type Q502895
['Q7769062', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q7769062 property:P58 ?s . ?s rdf:type ontology:Q502895 }
The Three Passions
action filter_type
action find
entity The Three Passions
relation screenwriter
type common name
['The Three Passions', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:The_Three_Passions property:screenwriter ?s . ?s rdf:type ontology:common_name }
[]
common name
Q541147
SYSTEM
Cosmo Hamilton
Q541147
(Q7769062,P58,c(Q502895))
action filter_type
action find
entity Q7769062
relation P58
type Q502895
The [ANSWER] wrote the screenplay for The Three Passions
['Q7769062', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q7769062 property:P58 ?s . ?s rdf:type ontology:Q502895 }
Cosmo Hamilton
The Cosmo Hamilton wrote the screenplay for The Three Passions
Cosmo Hamilton
action filter_type
action find
entity The Three Passions
relation screenwriter
type common name
['The Three Passions', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:The_Three_Passions property:screenwriter ?s . ?s rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7769062
P344
Q502895
USER
Which person is the cinematographer of The Three Passions ?
(Q7769062,P344,c(Q502895))
action filter_type
action find
entity Q7769062
relation P344
type Q502895
['Q7769062', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q7769062 property:P344 ?z . ?z rdf:type ontology:Q502895 }
The Three Passions
action filter_type
action find
entity The Three Passions
relation director of photography
type common name
['The Three Passions', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:The_Three_Passions property:director_of_photography ?z . ?z rdf:type ontology:common_name }
[]
common name
Q544869
SYSTEM
Léonce-Henri Burel
Q544869
(Q7769062,P344,c(Q502895))
action filter_type
action find
entity Q7769062
relation P344
type Q502895
[ANSWER] is the cinematographer of The Three Passions
['Q7769062', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q7769062 property:P344 ?z . ?z rdf:type ontology:Q502895 }
Léonce-Henri Burel
Léonce-Henri Burel is the cinematographer of The Three Passions
Léonce-Henri Burel
action filter_type
action find
entity The Three Passions
relation director of photography
type common name
['The Three Passions', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:The_Three_Passions property:director_of_photography ?z . ?z rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7769062
P161
Q502895
USER
Who starred in The Three Passions ?
(Q7769062,P161,c(Q502895))
action filter_type
action find
entity Q7769062
relation P161
type Q502895
['Q7769062', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q502895 . resource:Q7769062 property:P161 ?j }
The Three Passions
action filter_type
action find
entity The Three Passions
relation cast member
type common name
['The Three Passions', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:common_name . resource:The_Three_Passions property:cast_member ?j }
[]
common name
Q5126158 Q446444 Q1549265
SYSTEM
Clare Eames, Alice Terry, Iván Petrovich
Q7491680 Q5126158 Q446444 Q1549265
(Q7769062,P161,c(Q502895))
action filter_type
action find
entity Q7769062
relation P161
type Q502895
[ANSWERS] starred in The Three Passions
['Q7769062', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q502895 . resource:Q7769062 property:P161 ?j }
Shayle Gardner Clare Eames Alice Terry Iván Petrovich
Clare Eames, Alice Terry and Iván Petrovich starred in The Three Passions
Clare Eames Alice Terry Iván Petrovich
action filter_type
action find
entity The Three Passions
relation cast member
type common name
['The Three Passions', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:common_name . resource:The_Three_Passions property:cast_member ?j }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q7178310
P161
Q838948
USER
Do Pethainw gia sena have those people as actor ?
(Q7178310,P161,Q5126158) (Q7178310,P161,Q446444) (Q7178310,P161,Q1549265)
action is_in
entity prev_answer
action find
entity Q7178310
relation P161
['Q7178310', 'P161', 'Q5126158'] ['Q7178310', 'P161', 'Q446444'] ['Q7178310', 'P161', 'Q1549265']
ASK WHERE { resource:Q7178310 property:P161 ?b . VALUES ( ?b ) { ( resource:Q7491680 ) ( resource:Q5126158 ) ( resource:Q446444 ) } }
Pethainw gia sena
action is_in
entity prev_answer
action find
entity Pethainw gia sena
relation cast member
['Pethainw gia sena', 'cast member', 'Clare Eames'] ['Pethainw gia sena', 'cast member', 'Alice Terry'] ['Pethainw gia sena', 'cast member', 'Iván Petrovich']
ASK WHERE { resource:Pethainw_gia_sena property:cast_member ?b . VALUES ( ?b ) { ( resource:Shayle_Gardner ) ( resource:Clare_Eames ) ( resource:Alice_Terry ) } }
[]
work of art
SYSTEM
NO
(Q7178310,P161,Q5126158) (Q7178310,P161,Q446444) (Q7178310,P161,Q1549265)
action is_in
entity prev_answer
action find
entity Q7178310
relation P161
[ANSWER]
['Q7178310', 'P161', 'Q5126158'] ['Q7178310', 'P161', 'Q446444'] ['Q7178310', 'P161', 'Q1549265']
ASK WHERE { resource:Q7178310 property:P161 ?b . VALUES ( ?b ) { ( resource:Q7491680 ) ( resource:Q5126158 ) ( resource:Q446444 ) } }
No
action is_in
entity prev_answer
action find
entity Pethainw gia sena
relation cast member
['Pethainw gia sena', 'cast member', 'Clare Eames'] ['Pethainw gia sena', 'cast member', 'Alice Terry'] ['Pethainw gia sena', 'cast member', 'Iván Petrovich']
ASK WHERE { resource:Pethainw_gia_sena property:cast_member ?b . VALUES ( ?b ) { ( resource:Shayle_Gardner ) ( resource:Clare_Eames ) ( resource:Alice_Terry ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q446444 Q585857
P19
Q56061
USER
Is Vincennes the place of birth of Alice Terry ?
(Q446444,P19,Q585857)
action is_in
entity Q585857
action find
entity Q446444
relation P19
['Q446444', 'P19', 'Q585857']
ASK WHERE { resource:Q446444 property:P19 resource:Q585857 }
Alice Terry Vincennes
action is_in
entity Vincennes
action find
entity Alice Terry
relation place of birth
['Alice Terry', 'place of birth', 'Vincennes']
ASK WHERE { resource:Alice_Terry property:place_of_birth resource:Vincennes }
[]
administrative territorial entity
SYSTEM
YES
(Q446444,P19,Q585857)
action is_in
entity Q585857
action find
entity Q446444
relation P19
[ANSWER]
['Q446444', 'P19', 'Q585857']
ASK WHERE { resource:Q446444 property:P19 resource:Q585857 }
Yes
action is_in
entity Vincennes
action find
entity Alice Terry
relation place of birth
['Alice Terry', 'place of birth', 'Vincennes']
ASK WHERE { resource:Alice_Terry property:place_of_birth resource:Vincennes }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q446444
P26
Q502895
USER
Which person is the life partner of that one ?
action filter_type
action find
entity Q446444
relation P26
type Q502895
SELECT DISTINCT ?w WHERE { resource:Q446444 property:P26 ?w . ?w rdf:type ontology:Q502895 }
Alice Terry
action filter_type
action find
entity Alice Terry
relation spouse
type common name
SELECT DISTINCT ?w WHERE { resource:Alice_Terry property:spouse ?w . ?w rdf:type ontology:common_name }
[]
common name
Q1750696
SYSTEM
Rex Ingram
Q1750696
action filter_type
action find
entity Q446444
relation P26
type Q502895
[ANSWER] is the life partner of that one
SELECT DISTINCT ?w WHERE { resource:Q446444 property:P26 ?w . ?w rdf:type ontology:Q502895 }
Rex Ingram
Rex Ingram is the life partner of that one
Rex Ingram
action filter_type
action find
entity Alice Terry
relation spouse
type common name
SELECT DISTINCT ?w WHERE { resource:Alice_Terry property:spouse ?w . ?w rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1750696
P20
Q486972
USER
Where did that person die ?
(Q1750696,P20,c(Q486972))
action filter_type
action find
entity Q1750696
relation P20
type Q486972
['Q1750696', 'P20', {'concept': 'Q486972'}]
SELECT DISTINCT ?g WHERE { resource:Q1750696 property:P20 ?g . ?g rdf:type ontology:Q486972 }
Rex Ingram
action filter_type
action find
entity Rex Ingram
relation place of death
type human settlement
['Rex Ingram', 'place of death', {'concept': 'human settlement'}]
SELECT DISTINCT ?g WHERE { resource:Rex_Ingram property:place_of_death ?g . ?g rdf:type ontology:human_settlement }
[]
human settlement
Q34006
SYSTEM
Hollywood
Q34006
(Q1750696,P20,c(Q486972))
action filter_type
action find
entity Q1750696
relation P20
type Q486972
That person died in [ANSWER]
['Q1750696', 'P20', {'concept': 'Q486972'}]
SELECT DISTINCT ?g WHERE { resource:Q1750696 property:P20 ?g . ?g rdf:type ontology:Q486972 }
Hollywood
That person died in Hollywood
Hollywood
action filter_type
action find
entity Rex Ingram
relation place of death
type human settlement
['Rex Ingram', 'place of death', {'concept': 'human settlement'}]
SELECT DISTINCT ?g WHERE { resource:Rex_Ingram property:place_of_death ?g . ?g rdf:type ontology:human_settlement }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q34006 Q20312 Q17885
P17
Q15617994
USER
Is that human settlement situated in Möllenhagen and Villanova d'Asti ?
(Q34006,P17,Q20312) (Q34006,P17,Q17885)
action is_in
entity Q34006
action intersection
action find_reverse
entity Q20312
relation P17
action find_reverse
entity Q17885
relation P17
['Q34006', 'P17', 'Q20312'] ['Q34006', 'P17', 'Q17885']
ASK WHERE { resource:Q34006 property:P17 resource:Q17885 . resource:Q34006 property:P17 resource:Q20312 }
Hollywood Möllenhagen Villanova d'Asti
action is_in
entity Hollywood
action intersection
action find_reverse
entity Möllenhagen
relation country
action find_reverse
entity Villanova d'Asti
relation country
['Hollywood', 'country', 'Möllenhagen'] ['Hollywood', 'country', "Villanova d'Asti"]
ASK WHERE { resource:Hollywood property:country resource:Villanova_d'Asti . resource:Hollywood property:country resource:Möllenhagen }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q34006,P17,Q20312) (Q34006,P17,Q17885)
action is_in
entity Q34006
action intersection
action find_reverse
entity Q20312
relation P17
action find_reverse
entity Q17885
relation P17
[ANSWER]
['Q34006', 'P17', 'Q20312'] ['Q34006', 'P17', 'Q17885']
ASK WHERE { resource:Q34006 property:P17 resource:Q17885 . resource:Q34006 property:P17 resource:Q20312 }
No
action is_in
entity Hollywood
action intersection
action find_reverse
entity Möllenhagen
relation country
action find_reverse
entity Villanova d'Asti
relation country
['Hollywood', 'country', 'Möllenhagen'] ['Hollywood', 'country', "Villanova d'Asti"]
ASK WHERE { resource:Hollywood property:country resource:Villanova_d'Asti . resource:Hollywood property:country resource:Möllenhagen }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q446444 Q65 Q8652773
P20
Q56061
USER
Does Alice Terry have Los Angeles and Kalmunai Electoral District as place of death ?
(Q446444,P20,Q65) (Q446444,P20,Q8652773)
action is_in
entity Q446444
action intersection
action find_reverse
entity Q65
relation P20
action find_reverse
entity Q8652773
relation P20
['Q446444', 'P20', 'Q65'] ['Q446444', 'P20', 'Q8652773']
ASK WHERE { resource:Q446444 property:P20 resource:Q65 . resource:Q446444 property:P20 resource:Q8652773 }
Alice Terry Los Angeles Kalmunai Electoral District
action is_in
entity Alice Terry
action intersection
action find_reverse
entity Los Angeles
relation place of death
action find_reverse
entity Kalmunai Electoral District
relation place of death
['Alice Terry', 'place of death', 'Los Angeles'] ['Alice Terry', 'place of death', 'Kalmunai Electoral District']
ASK WHERE { resource:Alice_Terry property:place_of_death resource:Los_Angeles . resource:Alice_Terry property:place_of_death resource:Kalmunai_Electoral_District }
[]
administrative territorial entity
SYSTEM
YES and NO respectively
(Q446444,P20,Q65) (Q446444,P20,Q8652773)
action is_in
entity Q446444
action intersection
action find_reverse
entity Q65
relation P20
action find_reverse
entity Q8652773
relation P20
[ANSWER]
['Q446444', 'P20', 'Q65'] ['Q446444', 'P20', 'Q8652773']
ASK WHERE { resource:Q446444 property:P20 resource:Q65 . resource:Q446444 property:P20 resource:Q8652773 }
YES and NO respectively
action is_in
entity Alice Terry
action intersection
action find_reverse
entity Los Angeles
relation place of death
action find_reverse
entity Kalmunai Electoral District
relation place of death
['Alice Terry', 'place of death', 'Los Angeles'] ['Alice Terry', 'place of death', 'Kalmunai Electoral District']
ASK WHERE { resource:Alice_Terry property:place_of_death resource:Los_Angeles . resource:Alice_Terry property:place_of_death resource:Kalmunai_Electoral_District }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q777619
P1376
Q515 Q486972
USER
How many cities have less number of human settlements have their first city than Strehaia ?
(c(Q486972),P1376,c(Q515))
action count
action less
action find_reverse_tuple_counts
relation P1376
type Q515
type Q486972
action count
action filter_type
action find_reverse
entity Q777619
relation P1376
type Q486972
[{'concept': 'Q486972'}, 'P1376', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { ?d property:P1376 resource:Q777619 . ?d rdf:type ontology:Q486972 } } . FILTER ( ?z < ?e ) . { SELECT DISTINCT ?y ( COUNT ( ?k ) AS ?z ) WHERE { ?y rdf:type ontology:Q515 . ?k rdf:type ontology:Q486972 . ?k property:P1376 ?y } GROUP BY ?y } }
Strehaia
action count
action less
action find_reverse_tuple_counts
relation capital of
type city
type human settlement
action count
action filter_type
action find_reverse
entity Strehaia
relation capital of
type human settlement
[{'concept': 'human settlement'}, 'capital of', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { ?d property:capital_of resource:Strehaia . ?d rdf:type ontology:human_settlement } } . FILTER ( ?z < ?e ) . { SELECT DISTINCT ?y ( COUNT ( ?k ) AS ?z ) WHERE { ?y rdf:type ontology:city . ?k rdf:type ontology:human_settlement . ?k property:capital_of ?y } GROUP BY ?y } }
[]
city human settlement
SYSTEM
3
Q1410 Q235 Q148540
(c(Q486972),P1376,c(Q515))
action count
action less
action find_reverse_tuple_counts
relation P1376
type Q515
type Q486972
action count
action filter_type
action find_reverse
entity Q777619
relation P1376
type Q486972
[ANSWER]
[{'concept': 'Q486972'}, 'P1376', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { ?d property:P1376 resource:Q777619 . ?d rdf:type ontology:Q486972 } } . FILTER ( ?z < ?e ) . { SELECT DISTINCT ?y ( COUNT ( ?k ) AS ?z ) WHERE { ?y rdf:type ontology:Q515 . ?k rdf:type ontology:Q486972 . ?k property:P1376 ?y } GROUP BY ?y } }
Gibraltar Monaco Republic of Florence
3
action count
action less
action find_reverse_tuple_counts
relation capital of
type city
type human settlement
action count
action filter_type
action find_reverse
entity Strehaia
relation capital of
type human settlement
[{'concept': 'human settlement'}, 'capital of', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { ?d property:capital_of resource:Strehaia . ?d rdf:type ontology:human_settlement } } . FILTER ( ?z < ?e ) . { SELECT DISTINCT ?y ( COUNT ( ?k ) AS ?z ) WHERE { ?y rdf:type ontology:city . ?k rdf:type ontology:human_settlement . ?k property:capital_of ?y } GROUP BY ?y } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q837968
P1376
Q515 Q486972
USER
And also tell me about Băile Tușnad?
(c(Q486972),P1376,c(Q515))
action count
action less
action find_reverse_tuple_counts
relation P1376
type Q515
type Q486972
action count
action filter_type
action find_reverse
entity Q837968
relation P1376
type Q486972
[{'concept': 'Q486972'}, 'P1376', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?n ) AS ?l ) WHERE { ?n property:P1376 ?h . ?h rdf:type ontology:Q515 . ?n rdf:type ontology:Q486972 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?c ) WHERE { ?o property:P1376 resource:Q837968 . ?o rdf:type ontology:Q486972 } } . FILTER ( ?l < ?c ) }
Băile Tușnad
action count
action less
action find_reverse_tuple_counts
relation capital of
type city
type human settlement
action count
action filter_type
action find_reverse
entity Băile Tușnad
relation capital of
type human settlement
[{'concept': 'human settlement'}, 'capital of', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?n ) AS ?l ) WHERE { ?n property:capital_of ?h . ?h rdf:type ontology:city . ?n rdf:type ontology:human_settlement } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?c ) WHERE { ?o property:capital_of resource:Băile_Tușnad . ?o rdf:type ontology:human_settlement } } . FILTER ( ?l < ?c ) }
[]
city human settlement
SYSTEM
3
Q1410 Q235 Q148540
(c(Q486972),P1376,c(Q515))
action count
action less
action find_reverse_tuple_counts
relation P1376
type Q515
type Q486972
action count
action filter_type
action find_reverse
entity Q837968
relation P1376
type Q486972
[ANSWER]
[{'concept': 'Q486972'}, 'P1376', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?n ) AS ?l ) WHERE { ?n property:P1376 ?h . ?h rdf:type ontology:Q515 . ?n rdf:type ontology:Q486972 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?c ) WHERE { ?o property:P1376 resource:Q837968 . ?o rdf:type ontology:Q486972 } } . FILTER ( ?l < ?c ) }
Gibraltar Monaco Republic of Florence
3
action count
action less
action find_reverse_tuple_counts
relation capital of
type city
type human settlement
action count
action filter_type
action find_reverse
entity Băile Tușnad
relation capital of
type human settlement
[{'concept': 'human settlement'}, 'capital of', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?n ) AS ?l ) WHERE { ?n property:capital_of ?h . ?h rdf:type ontology:city . ?n rdf:type ontology:human_settlement } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?c ) WHERE { ?o property:capital_of resource:Băile_Tușnad . ?o rdf:type ontology:human_settlement } } . FILTER ( ?l < ?c ) }
[]