Simple Question (Direct)
Simple Question
Q18438902
P57
Q502895
USER
Who was the director of The Killers Are Our Guests ?
(Q18438902,P57,c(Q502895))
action filter_type
action find
entity Q18438902
relation P57
type Q502895
['Q18438902', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q502895 . resource:Q18438902 property:P57 ?y }
The Killers Are Our Guests
action filter_type
action find
entity The Killers Are Our Guests
relation director
type common name
['The Killers Are Our Guests', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:common_name . resource:The_Killers_Are_Our_Guests property:director ?y }
[]
common name
Q4013484
SYSTEM
Vincenzo Rigo
Q4013484
(Q18438902,P57,c(Q502895))
action filter_type
action find
entity Q18438902
relation P57
type Q502895
[ANSWER]
['Q18438902', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q502895 . resource:Q18438902 property:P57 ?y }
Vincenzo Rigo
Vincenzo Rigo
action filter_type
action find
entity The Killers Are Our Guests
relation director
type common name
['The Killers Are Our Guests', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:common_name . resource:The_Killers_Are_Our_Guests property:director ?y }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18438902
P1040
Q502895
USER
Which person is the editor of The Killers Are Our Guests ?
(Q18438902,P1040,c(Q502895))
action filter_type
action find
entity Q18438902
relation P1040
type Q502895
['Q18438902', 'P1040', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q502895 . resource:Q18438902 property:P1040 ?y }
The Killers Are Our Guests
action filter_type
action find
entity The Killers Are Our Guests
relation film editor
type common name
['The Killers Are Our Guests', 'film editor', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:common_name . resource:The_Killers_Are_Our_Guests property:film_editor ?y }
[]
common name
Q4013484
SYSTEM
Vincenzo Rigo
Q4013484
(Q18438902,P1040,c(Q502895))
action filter_type
action find
entity Q18438902
relation P1040
type Q502895
[ANSWER]
['Q18438902', 'P1040', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q502895 . resource:Q18438902 property:P1040 ?y }
Vincenzo Rigo
Vincenzo Rigo
action filter_type
action find
entity The Killers Are Our Guests
relation film editor
type common name
['The Killers Are Our Guests', 'film editor', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:common_name . resource:The_Killers_Are_Our_Guests property:film_editor ?y }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q4013484 Q38
P27
Q15617994
USER
Is Vincenzo Rigo a civilian of Italy ?
(Q4013484,P27,Q38)
action is_in
entity Q38
action find
entity Q4013484
relation P27
['Q4013484', 'P27', 'Q38']
ASK WHERE { resource:Q4013484 property:P27 resource:Q38 }
Vincenzo Rigo Italy
action is_in
entity Italy
action find
entity Vincenzo Rigo
relation country of citizenship
['Vincenzo Rigo', 'country of citizenship', 'Italy']
ASK WHERE { resource:Vincenzo_Rigo property:country_of_citizenship resource:Italy }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q4013484,P27,Q38)
action is_in
entity Q38
action find
entity Q4013484
relation P27
[ANSWER]
['Q4013484', 'P27', 'Q38']
ASK WHERE { resource:Q4013484 property:P27 resource:Q38 }
Yes
action is_in
entity Italy
action find
entity Vincenzo Rigo
relation country of citizenship
['Vincenzo Rigo', 'country of citizenship', 'Italy']
ASK WHERE { resource:Vincenzo_Rigo property:country_of_citizenship resource:Italy }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q38 Q4013484
P495 P344
Q838948
USER
Which works of art have Vincenzo Rigo as cinematographer and are Italy a country of origin of ?
AND((c(Q838948),P344,Q4013484), (c(Q838948),P495,Q38))
action filter_type
action intersection
action find_reverse
entity Q4013484
relation P344
action find_reverse
entity Q38
relation P495
type Q838948
{'AND': [[{'concept': 'Q838948'}, 'P344', 'Q4013484'], [{'concept': 'Q838948'}, 'P495', 'Q38']]}
SELECT DISTINCT ?f WHERE { ?f property:P344 resource:Q4013484 . ?f property:P495 resource:Q38 . ?f rdf:type ontology:Q838948 }
Italy Vincenzo Rigo
action filter_type
action intersection
action find_reverse
entity Vincenzo Rigo
relation director of photography
action find_reverse
entity Italy
relation country of origin
type work of art
{'AND': [[{'concept': 'work of art'}, 'director of photography', 'Vincenzo Rigo'], [{'concept': 'work of art'}, 'country of origin', 'Italy']]}
SELECT DISTINCT ?f WHERE { ?f property:director_of_photography resource:Vincenzo_Rigo . ?f property:country_of_origin resource:Italy . ?f rdf:type ontology:work_of_art }
[]
work of art
Q18438902
SYSTEM
The Killers Are Our Guests
Q18438902
AND((c(Q838948),P344,Q4013484), (c(Q838948),P495,Q38))
action filter_type
action intersection
action find_reverse
entity Q4013484
relation P344
action find_reverse
entity Q38
relation P495
type Q838948
[ANSWER]
{'AND': [[{'concept': 'Q838948'}, 'P344', 'Q4013484'], [{'concept': 'Q838948'}, 'P495', 'Q38']]}
SELECT DISTINCT ?f WHERE { ?f property:P344 resource:Q4013484 . ?f property:P495 resource:Q38 . ?f rdf:type ontology:Q838948 }
The Killers Are Our Guests
The Killers Are Our Guests
action filter_type
action intersection
action find_reverse
entity Vincenzo Rigo
relation director of photography
action find_reverse
entity Italy
relation country of origin
type work of art
{'AND': [[{'concept': 'work of art'}, 'director of photography', 'Vincenzo Rigo'], [{'concept': 'work of art'}, 'country of origin', 'Italy']]}
SELECT DISTINCT ?f WHERE { ?f property:director_of_photography resource:Vincenzo_Rigo . ?f property:country_of_origin resource:Italy . ?f rdf:type ontology:work_of_art }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q1334300
P2079
Q2695280 Q838948
USER
How many technicss are used to fabricate approximately the same number of works of art as gilding ?
(c(Q838948),P2079,c(Q2695280))
action count
action approx
action find_reverse_tuple_counts
relation P2079
type Q2695280
type Q838948
action count
action filter_type
action find
entity Q1334300
relation P2079
type Q2695280
[{'concept': 'Q838948'}, 'P2079', {'concept': 'Q2695280'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?r ) AS ?a ) WHERE { ?s rdf:type ontology:Q2695280 . ?r rdf:type ontology:Q838948 . ?r property:P2079 ?s } GROUP BY ?s } . FILTER ( ?a = ?k ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?k ) WHERE { resource:Q1334300 property:P2079 ?h . ?h rdf:type ontology:Q2695280 } } }
gilding
action count
action approx
action find_reverse_tuple_counts
relation fabrication method
type technics
type work of art
action count
action filter_type
action find
entity gilding
relation fabrication method
type technics
[{'concept': 'work of art'}, 'fabrication method', {'concept': 'technics'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?r ) AS ?a ) WHERE { ?s rdf:type ontology:technics . ?r rdf:type ontology:work_of_art . ?r property:fabrication_method ?s } GROUP BY ?s } . FILTER ( ?a = ?k ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?k ) WHERE { resource:gilding property:fabrication_method ?h . ?h rdf:type ontology:technics } } }
[]
technics work of art
SYSTEM
2
Q1334300 Q170593
(c(Q838948),P2079,c(Q2695280))
action count
action approx
action find_reverse_tuple_counts
relation P2079
type Q2695280
type Q838948
action count
action filter_type
action find
entity Q1334300
relation P2079
type Q2695280
[ANSWER]
[{'concept': 'Q838948'}, 'P2079', {'concept': 'Q2695280'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?r ) AS ?a ) WHERE { ?s rdf:type ontology:Q2695280 . ?r rdf:type ontology:Q838948 . ?r property:P2079 ?s } GROUP BY ?s } . FILTER ( ?a = ?k ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?k ) WHERE { resource:Q1334300 property:P2079 ?h . ?h rdf:type ontology:Q2695280 } } }
gilding collage
2
action count
action approx
action find_reverse_tuple_counts
relation fabrication method
type technics
type work of art
action count
action filter_type
action find
entity gilding
relation fabrication method
type technics
[{'concept': 'work of art'}, 'fabrication method', {'concept': 'technics'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?r ) AS ?a ) WHERE { ?s rdf:type ontology:technics . ?r rdf:type ontology:work_of_art . ?r property:fabrication_method ?s } GROUP BY ?s } . FILTER ( ?a = ?k ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?k ) WHERE { resource:gilding property:fabrication_method ?h . ?h rdf:type ontology:technics } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q9363879
P2079
Q2695280 Q838948
USER
And what about stamping?
(c(Q838948),P2079,c(Q2695280))
action count
action approx
action find_reverse_tuple_counts
relation P2079
type Q2695280
type Q838948
action count
action filter_type
action find
entity Q9363879
relation P2079
type Q2695280
[{'concept': 'Q838948'}, 'P2079', {'concept': 'Q2695280'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?z ) AS ?v ) WHERE { ?d rdf:type ontology:Q2695280 . ?z rdf:type ontology:Q838948 . ?z property:P2079 ?d } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?m ) WHERE { ?p rdf:type ontology:Q2695280 . resource:Q9363879 property:P2079 ?p } } . FILTER ( ?v = ?m ) }
stamping
action count
action approx
action find_reverse_tuple_counts
relation fabrication method
type technics
type work of art
action count
action filter_type
action find
entity stamping
relation fabrication method
type technics
[{'concept': 'work of art'}, 'fabrication method', {'concept': 'technics'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?z ) AS ?v ) WHERE { ?d rdf:type ontology:technics . ?z rdf:type ontology:work_of_art . ?z property:fabrication_method ?d } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?m ) WHERE { ?p rdf:type ontology:technics . resource:stamping property:fabrication_method ?p } } . FILTER ( ?v = ?m ) }
[]
technics work of art
SYSTEM
10
Q11750728 Q9363879 Q173242 Q204867 Q192047 Q752633 Q26265824 Q139106 Q133036 Q2657271
(c(Q838948),P2079,c(Q2695280))
action count
action approx
action find_reverse_tuple_counts
relation P2079
type Q2695280
type Q838948
action count
action filter_type
action find
entity Q9363879
relation P2079
type Q2695280
[ANSWER]
[{'concept': 'Q838948'}, 'P2079', {'concept': 'Q2695280'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?z ) AS ?v ) WHERE { ?d rdf:type ontology:Q2695280 . ?z rdf:type ontology:Q838948 . ?z property:P2079 ?d } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?m ) WHERE { ?p rdf:type ontology:Q2695280 . resource:Q9363879 property:P2079 ?p } } . FILTER ( ?v = ?m ) }
Punching stamping woodcut technique zincography machining linocut technique chasing engraving lithography silvering
10
action count
action approx
action find_reverse_tuple_counts
relation fabrication method
type technics
type work of art
action count
action filter_type
action find
entity stamping
relation fabrication method
type technics
[{'concept': 'work of art'}, 'fabrication method', {'concept': 'technics'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?z ) AS ?v ) WHERE { ?d rdf:type ontology:technics . ?z rdf:type ontology:work_of_art . ?z property:fabrication_method ?d } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?m ) WHERE { ?p rdf:type ontology:technics . resource:stamping property:fabrication_method ?p } } . FILTER ( ?v = ?m ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P2079
Q2695280 Q838948
USER
How many technicss are used to assemble around 1 work of art ?
(c(Q838948),P2079,c(Q2695280))
action count
action approx
action find_reverse_tuple_counts
relation P2079
type Q2695280
type Q838948
value 1
[{'concept': 'Q838948'}, 'P2079', {'concept': 'Q2695280'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?f ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?n ) AS ?a ) WHERE { ?n property:P2079 ?q . ?q rdf:type ontology:Q2695280 . ?n rdf:type ontology:Q838948 } GROUP BY ?q } . FILTER ( ?a = 1 ) }
action count
action approx
action find_reverse_tuple_counts
relation fabrication method
type technics
type work of art
value 1
[{'concept': 'work of art'}, 'fabrication method', {'concept': 'technics'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?f ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?n ) AS ?a ) WHERE { ?n property:fabrication_method ?q . ?q rdf:type ontology:technics . ?n rdf:type ontology:work_of_art } GROUP BY ?q } . FILTER ( ?a = 1 ) }
[]
technics work of art
SYSTEM
2
Q1334300 Q170593
(c(Q838948),P2079,c(Q2695280))
action count
action approx
action find_reverse_tuple_counts
relation P2079
type Q2695280
type Q838948
value 1
[ANSWER]
[{'concept': 'Q838948'}, 'P2079', {'concept': 'Q2695280'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?f ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?n ) AS ?a ) WHERE { ?n property:P2079 ?q . ?q rdf:type ontology:Q2695280 . ?n rdf:type ontology:Q838948 } GROUP BY ?q } . FILTER ( ?a = 1 ) }
gilding collage
2
action count
action approx
action find_reverse_tuple_counts
relation fabrication method
type technics
type work of art
value 1
[{'concept': 'work of art'}, 'fabrication method', {'concept': 'technics'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?f ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?n ) AS ?a ) WHERE { ?n property:fabrication_method ?q . ?q rdf:type ontology:technics . ?n rdf:type ontology:work_of_art } GROUP BY ?q } . FILTER ( ?a = 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q10524974 Q18438902
P27 P495
Q15617994
USER
Which administrative territories are the origin of The Killers Are Our Guests or are Hjördis Blomgren an inhabitant of ?
OR((Q18438902,P495,c(Q15617994)), (Q10524974,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q18438902
relation P495
action find
entity Q10524974
relation P27
type Q15617994
{'OR': [['Q18438902', 'P495', {'concept': 'Q15617994'}], ['Q10524974', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q18438902 property:P495 ?s } UNION { resource:Q10524974 property:P27 ?s } } . ?s rdf:type ontology:Q15617994 }
Hjördis Blomgren The Killers Are Our Guests
action filter_type
action union
action find
entity The Killers Are Our Guests
relation country of origin
action find
entity Hjördis Blomgren
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['The Killers Are Our Guests', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Hjördis Blomgren', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:The_Killers_Are_Our_Guests property:country_of_origin ?s } UNION { resource:Hjördis_Blomgren property:country_of_citizenship ?s } } . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q34
SYSTEM
Italy, Sweden
Q38 Q34
OR((Q18438902,P495,c(Q15617994)), (Q10524974,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q18438902
relation P495
action find
entity Q10524974
relation P27
type Q15617994
[ANSWERS]
{'OR': [['Q18438902', 'P495', {'concept': 'Q15617994'}], ['Q10524974', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q18438902 property:P495 ?s } UNION { resource:Q10524974 property:P27 ?s } } . ?s rdf:type ontology:Q15617994 }
Italy Sweden
Italy Sweden
action filter_type
action union
action find
entity The Killers Are Our Guests
relation country of origin
action find
entity Hjördis Blomgren
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['The Killers Are Our Guests', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Hjördis Blomgren', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:The_Killers_Are_Our_Guests property:country_of_origin ?s } UNION { resource:Hjördis_Blomgren property:country_of_citizenship ?s } } . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q38
P163
Q14660
USER
Which flag is associated with that administrative territory ?
(Q38,P163,c(Q14660))
action filter_type
action find
entity Q38
relation P163
type Q14660
['Q38', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q14660 . resource:Q38 property:P163 ?u }
Italy
action filter_type
action find
entity Italy
relation flag
type flag
['Italy', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:flag . resource:Italy property:flag ?u }
[]
flag
Clarification for simple ques.
Q34
SYSTEM
Did you mean Sweden ?
Q38 Q34
(Q38,P163,c(Q14660)) (Q34,P163,c(Q14660))
[ANSWER]
['Q38', 'P163', {'concept': 'Q14660'}] ['Q34', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q14660 . resource:Q38 property:P163 ?u }
Italy Sweden
Did you mean Sweden ?
Sweden
['Italy', 'flag', {'concept': 'flag'}] ['Sweden', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:flag . resource:Italy property:flag ?u }
[]
Simple Question (Coreferenced)
USER
No, I meant Italy. Could you tell me the answer for that?
(Q38,P163,c(Q14660))
Q38
['Q38', 'P163', {'concept': 'Q14660'}]
['Italy', 'flag', {'concept': 'flag'}]
[]
Q42876
SYSTEM
Flag of Italy
Q42876
(Q38,P163,c(Q14660))
action filter_type
action find
entity Q38
relation P163
type Q14660
[ANSWER]
['Q38', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q14660 . resource:Q38 property:P163 ?u }
Flag of Italy
Flag of Italy
action filter_type
action find
entity Italy
relation flag
type flag
['Italy', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:flag . resource:Italy property:flag ?u }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P1001
Q13220204 Q56061 Q14660
USER
How many flags have jurisdiction over greater number of administrative country subdivisions and administrative territories than that flag ?
(c(Q14660),P1001,c(Q13220204)|c(Q56061))
action count
action greater
action union
action find_tuple_counts
relation P1001
type Q14660
type Q13220204
action find_tuple_counts
relation P1001
type Q14660
type Q56061
action count
action filter_multi_types
action find
entity Q42876
relation P1001
type Q13220204
type Q56061
[{'concept': 'Q14660'}, 'P1001', [{'concept': 'Q13220204'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) ?l WHERE { { ?l property:P1001 ?s . ?l rdf:type ontology:Q14660 . ?s rdf:type ontology:Q13220204 } UNION { ?l property:P1001 ?s . ?s rdf:type ontology:Q56061 . ?l rdf:type ontology:Q14660 } } GROUP BY ?l } . FILTER ( ?y > ?r ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?r ) WHERE { { VALUES ( ?i ) { ( ontology:Q13220204 ) ( ontology:Q56061 ) } . ?w rdf:type ?i } . resource:Q42876 property:P1001 ?w } } }
action count
action greater
action union
action find_tuple_counts
relation applies to jurisdiction
type flag
type second-level administrative country subdivision
action find_tuple_counts
relation applies to jurisdiction
type flag
type administrative territorial entity
action count
action filter_multi_types
action find
entity Flag of Italy
relation applies to jurisdiction
type second-level administrative country subdivision
type administrative territorial entity
[{'concept': 'flag'}, 'applies to jurisdiction', [{'concept': 'second-level administrative country subdivision'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) ?l WHERE { { ?l property:applies_to_jurisdiction ?s . ?l rdf:type ontology:flag . ?s rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?l property:applies_to_jurisdiction ?s . ?s rdf:type ontology:administrative_territorial_entity . ?l rdf:type ontology:flag } } GROUP BY ?l } . FILTER ( ?y > ?r ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?r ) WHERE { { VALUES ( ?i ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:administrative_territorial_entity ) } . ?w rdf:type ?i } . resource:Flag_of_Italy property:applies_to_jurisdiction ?w } } }
[]
second-level administrative country subdivision administrative territorial entity flag
SYSTEM
19
Q483659 Q328889 Q600147 Q1856088 Q235829 Q618036 Q224972 Q241781 Q204666 Q19810326 Q543471 Q659058 Q463964 Q242502 Q1414813 Q202610 Q429900 Q1426379 Q79198
(c(Q14660),P1001,c(Q13220204)|c(Q56061))
action count
action greater
action union
action find_tuple_counts
relation P1001
type Q14660
type Q13220204
action find_tuple_counts
relation P1001
type Q14660
type Q56061
action count
action filter_multi_types
action find
entity Q42876
relation P1001
type Q13220204
type Q56061
[ANSWER]
[{'concept': 'Q14660'}, 'P1001', [{'concept': 'Q13220204'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) ?l WHERE { { ?l property:P1001 ?s . ?l rdf:type ontology:Q14660 . ?s rdf:type ontology:Q13220204 } UNION { ?l property:P1001 ?s . ?s rdf:type ontology:Q56061 . ?l rdf:type ontology:Q14660 } } GROUP BY ?l } . FILTER ( ?y > ?r ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?r ) WHERE { { VALUES ( ?i ) { ( ontology:Q13220204 ) ( ontology:Q56061 ) } . ?w rdf:type ?i } . resource:Q42876 property:P1001 ?w } } }
Flag of Singapore Flag of the Northern Mariana Islands Flag of the City of Madrid Flag of Rotterdam flag of Guam Flag of Toronto Flag of the Canary Islands Flag of Madeira Flag of US Virgin Islands flag of Dzisna Flag of the Region of Murcia flag of Paris Flag of Northern Ireland Flag of American Samoa Flag of New York City flag of Åland Flag of Saba Flag of Amsterdam Flag of Vatican City
19
action count
action greater
action union
action find_tuple_counts
relation applies to jurisdiction
type flag
type second-level administrative country subdivision
action find_tuple_counts
relation applies to jurisdiction
type flag
type administrative territorial entity
action count
action filter_multi_types
action find
entity Flag of Italy
relation applies to jurisdiction
type second-level administrative country subdivision
type administrative territorial entity
[{'concept': 'flag'}, 'applies to jurisdiction', [{'concept': 'second-level administrative country subdivision'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) ?l WHERE { { ?l property:applies_to_jurisdiction ?s . ?l rdf:type ontology:flag . ?s rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?l property:applies_to_jurisdiction ?s . ?s rdf:type ontology:administrative_territorial_entity . ?l rdf:type ontology:flag } } GROUP BY ?l } . FILTER ( ?y > ?r ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?r ) WHERE { { VALUES ( ?i ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:administrative_territorial_entity ) } . ?w rdf:type ?i } . resource:Flag_of_Italy property:applies_to_jurisdiction ?w } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q38
P1532
Q502895
USER
Who play for Italy ?
(c(Q502895),P1532,Q38)
action filter_type
action find_reverse
entity Q38
relation P1532
type Q502895
[{'concept': 'Q502895'}, 'P1532', 'Q38']
SELECT DISTINCT ?z WHERE { ?z property:P1532 resource:Q38 . ?z rdf:type ontology:Q502895 }
Italy
action filter_type
action find_reverse
entity Italy
relation country for sport
type common name
[{'concept': 'common name'}, 'country for sport', 'Italy']
SELECT DISTINCT ?z WHERE { ?z property:country_for_sport resource:Italy . ?z rdf:type ontology:common_name }
[]
common name
Q3110622 Q1045901 Q25820084
SYSTEM
Gonzalo Garcia, Carter Trevisani, Yusneysi Santiusti
Q22703869 Q22246777 Q9345554 Q22137004 Q1045901 Q25336604 Q21034233 Q25820084 Q20016855 Q22137017 Q21600834 Q24287413 Q5041564 Q22988707 Q22137011 Q3878312 Q22949274 Q22136991 Q25201549 Q22137023 Q21855004 Q22137020 Q3110622 Q2026418 Q22911603 Q23036908
(c(Q502895),P1532,Q38)
action filter_type
action find_reverse
entity Q38
relation P1532
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P1532', 'Q38']
SELECT DISTINCT ?z WHERE { ?z property:P1532 resource:Q38 . ?z rdf:type ontology:Q502895 }
Dries van Schalkwyk Elisa Rea Stefano Braga Johanelis Herrera Abreu Carter Trevisani Filippo Tortu Enrico Casella Yusneysi Santiusti Stefanie Horn Federica Putti Héctor De Marco Luca Pizzini Carlo Occhiena Giuseppe Leonardi Eugenio Meloni Norbert Bonvecchio Osama Zoghlami Virginia Troiani Livio Sciandra Alice Mangione Federica Curiazzi Martina Lorenzetto Gonzalo Garcia Dario Cerrato Sergio Chiesa Daniele Corsa
Gonzalo Garcia Carter Trevisani Yusneysi Santiusti
action filter_type
action find_reverse
entity Italy
relation country for sport
type common name
[{'concept': 'common name'}, 'country for sport', 'Italy']
SELECT DISTINCT ?z WHERE { ?z property:country_for_sport resource:Italy . ?z rdf:type ontology:common_name }
[]