Simple Question (Direct)
Simple Question
Q3124049
P106
Q12737077
USER
What is the profession of Gérard Jeffray ?
(Q3124049,P106,c(Q12737077))
action filter_type
action find
entity Q3124049
relation P106
type Q12737077
['Q3124049', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q12737077 . resource:Q3124049 property:P106 ?x }
Gérard Jeffray
action filter_type
action find
entity Gérard Jeffray
relation occupation
type occupation
['Gérard Jeffray', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:occupation . resource:Gérard_Jeffray property:occupation ?x }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q3124049,P106,c(Q12737077))
action filter_type
action find
entity Q3124049
relation P106
type Q12737077
The profession of Gérard Jeffray is a [ANSWER]
['Q3124049', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q12737077 . resource:Q3124049 property:P106 ?x }
politician
The profession of Gérard Jeffray is a politician
politician
action filter_type
action find
entity Gérard Jeffray
relation occupation
type occupation
['Gérard Jeffray', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:occupation . resource:Gérard_Jeffray property:occupation ?x }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3124049
P39
Q12737077
USER
What were the positions held by Gérard Jeffray ?
(Q3124049,P39,c(Q12737077))
action filter_type
action find
entity Q3124049
relation P39
type Q12737077
['Q3124049', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q3124049 property:P39 ?p . ?p rdf:type ontology:Q12737077 }
Gérard Jeffray
action filter_type
action find
entity Gérard Jeffray
relation position held
type occupation
['Gérard Jeffray', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Gérard_Jeffray property:position_held ?p . ?p rdf:type ontology:occupation }
[]
occupation
Q382617 Q3044918 Q1055894
SYSTEM
maire, member of the French National Assembly, deputy
Q382617 Q3044918 Q1055894
(Q3124049,P39,c(Q12737077))
action filter_type
action find
entity Q3124049
relation P39
type Q12737077
[ANSWERS]
['Q3124049', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q3124049 property:P39 ?p . ?p rdf:type ontology:Q12737077 }
maire member of the French National Assembly deputy
The positions held by Gérard Jeffray were maire, member of the French National Assembly and deputy
maire member of the French National Assembly deputy
action filter_type
action find
entity Gérard Jeffray
relation position held
type occupation
['Gérard Jeffray', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Gérard_Jeffray property:position_held ?p . ?p rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q356267
Q12737077
USER
And also tell me about James Harper?
(Q356267,P39,c(Q12737077))
action filter_type
action find
entity Q356267
relation P39
type Q12737077
['Q356267', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q12737077 . resource:Q356267 property:P39 ?w }
James Harper
action filter_type
action find
entity James Harper
relation position held
type occupation
['James Harper', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:occupation . resource:James_Harper property:position_held ?w }
[]
occupation
Q785304
SYSTEM
Mayor of New York City
Q785304
(Q356267,P39,c(Q12737077))
action filter_type
action find
entity Q356267
relation P39
type Q12737077
[ANSWER]
['Q356267', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q12737077 . resource:Q356267 property:P39 ?w }
Mayor of New York City
Mayor of New York City
action filter_type
action find
entity James Harper
relation position held
type occupation
['James Harper', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:occupation . resource:James_Harper property:position_held ?w }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q785304
P1001
Q56061
USER
Which administrative territory is linked to that occupation ?
(Q785304,P1001,c(Q56061))
action filter_type
action find
entity Q785304
relation P1001
type Q56061
['Q785304', 'P1001', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q785304 property:P1001 ?o . ?o rdf:type ontology:Q56061 }
Mayor of New York City
action filter_type
action find
entity Mayor of New York City
relation applies to jurisdiction
type administrative territorial entity
['Mayor of New York City', 'applies to jurisdiction', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Mayor_of_New_York_City property:applies_to_jurisdiction ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q60
SYSTEM
New York City
Q60
(Q785304,P1001,c(Q56061))
action filter_type
action find
entity Q785304
relation P1001
type Q56061
[ANSWER] is linked to that occupation
['Q785304', 'P1001', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q785304 property:P1001 ?o . ?o rdf:type ontology:Q56061 }
New York City
New York City is linked to that occupation
New York City
action filter_type
action find
entity Mayor of New York City
relation applies to jurisdiction
type administrative territorial entity
['Mayor of New York City', 'applies to jurisdiction', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Mayor_of_New_York_City property:applies_to_jurisdiction ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q785304
P1313
Q56061
USER
Which administrative territory has Mayor of New York City as position of head of government ?
(c(Q56061),P1313,Q785304)
action filter_type
action find_reverse
entity Q785304
relation P1313
type Q56061
[{'concept': 'Q56061'}, 'P1313', 'Q785304']
SELECT DISTINCT ?a WHERE { ?a property:P1313 resource:Q785304 . ?a rdf:type ontology:Q56061 }
Mayor of New York City
action filter_type
action find_reverse
entity Mayor of New York City
relation office held by head of government
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'office held by head of government', 'Mayor of New York City']
SELECT DISTINCT ?a WHERE { ?a property:office_held_by_head_of_government resource:Mayor_of_New_York_City . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q60
SYSTEM
New York City
Q60
(c(Q56061),P1313,Q785304)
action filter_type
action find_reverse
entity Q785304
relation P1313
type Q56061
City [ANSWER] has Mayor of [ANSWER] as position of head of government
[{'concept': 'Q56061'}, 'P1313', 'Q785304']
SELECT DISTINCT ?a WHERE { ?a property:P1313 resource:Q785304 . ?a rdf:type ontology:Q56061 }
New York City
City New York City has Mayor of New York City as position of head of government
New York City
action filter_type
action find_reverse
entity Mayor of New York City
relation office held by head of government
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'office held by head of government', 'Mayor of New York City']
SELECT DISTINCT ?a WHERE { ?a property:office_held_by_head_of_government resource:Mayor_of_New_York_City . ?a rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q785304
P17
Q15617994
USER
Which administrative territory is Mayor of New York City a part of ?
(Q785304,P17,c(Q15617994))
action filter_type
action find
entity Q785304
relation P17
type Q15617994
['Q785304', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { resource:Q785304 property:P17 ?z . ?z rdf:type ontology:Q15617994 }
Mayor of New York City
action filter_type
action find
entity Mayor of New York City
relation country
type designation for an administrative territorial entity
['Mayor of New York City', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Mayor_of_New_York_City property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q785304,P17,c(Q15617994))
action filter_type
action find
entity Q785304
relation P17
type Q15617994
The [ANSWER] is Mayor of New York City a part of
['Q785304', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { resource:Q785304 property:P17 ?z . ?z rdf:type ontology:Q15617994 }
United States of America
The United States of America is Mayor of New York City a part of
United States of America
action filter_type
action find
entity Mayor of New York City
relation country
type designation for an administrative territorial entity
['Mayor of New York City', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Mayor_of_New_York_City property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q15219388
Q15617994
USER
And also tell me about Misa?
(Q15219388,P17,c(Q15617994))
action filter_type
action find
entity Q15219388
relation P17
type Q15617994
['Q15219388', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q15219388 property:P17 ?n . ?n rdf:type ontology:Q15617994 }
Misa
action filter_type
action find
entity Misa
relation country
type designation for an administrative territorial entity
['Misa', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Misa property:country ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q211
SYSTEM
Latvia
Q211
(Q15219388,P17,c(Q15617994))
action filter_type
action find
entity Q15219388
relation P17
type Q15617994
[ANSWER]
['Q15219388', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q15219388 property:P17 ?n . ?n rdf:type ontology:Q15617994 }
Latvia
Latvia
action filter_type
action find
entity Misa
relation country
type designation for an administrative territorial entity
['Misa', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Misa property:country ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q201658 Q7725634
USER
How many administrative territories did greater number of film genres and literary works originate than that administrative territory ?
(c(Q201658)|c(Q7725634),P495,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q211
relation P495
type Q201658
type Q7725634
[[{'concept': 'Q201658'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) ?r WHERE { VALUES ( ?f ) { ( ontology:Q201658 ) ( ontology:Q7725634 ) } . ?k rdf:type ?f } GROUP BY ?r } . FILTER ( ?d > ?p ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?p ) WHERE { ?q property:P495 resource:Q211 . { { ?q rdf:type ontology:Q201658 } UNION { ?q rdf:type ontology:Q7725634 } } } } }
action count
action greater
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type literary work
action count
action filter_multi_types
action find_reverse
entity Latvia
relation country of origin
type film genre
type literary work
[[{'concept': 'film genre'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) ?r WHERE { VALUES ( ?f ) { ( ontology:film_genre ) ( ontology:literary_work ) } . ?k rdf:type ?f } GROUP BY ?r } . FILTER ( ?d > ?p ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?p ) WHERE { ?q property:country_of_origin resource:Latvia . { { ?q rdf:type ontology:film_genre } UNION { ?q rdf:type ontology:literary_work } } } } }
[]
designation for an administrative territorial entity film genre literary work
SYSTEM
51
Q801 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q252 Q258 Q45 Q159 Q43 Q41 Q155 Q794 Q884 Q241 Q33 Q32 Q31 Q30 Q36 Q34 Q39 Q38 Q739 Q983 Q232 Q20 Q1041 Q27 Q28 Q843 Q1029 Q1028 Q96 Q17 Q974 Q191 Q965 Q298 Q115 Q212 Q213 Q218 Q79 Q77 Q948 Q29
(c(Q201658)|c(Q7725634),P495,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q211
relation P495
type Q201658
type Q7725634
[ANSWER]
[[{'concept': 'Q201658'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) ?r WHERE { VALUES ( ?f ) { ( ontology:Q201658 ) ( ontology:Q7725634 ) } . ?k rdf:type ?f } GROUP BY ?r } . FILTER ( ?d > ?p ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?p ) WHERE { ?q property:P495 resource:Q211 . { { ?q rdf:type ontology:Q201658 } UNION { ?q rdf:type ontology:Q7725634 } } } } }
Israel Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Indonesia South Africa Portugal Russia Turkey Greece Brazil Iran South Korea Cuba Finland Luxembourg Belgium United States of America Poland Sweden Switzerland Italy Colombia Equatorial Guinea Kazakhstan Norway Senegal Ireland Hungary Pakistan Mozambique Morocco Mexico Japan Democratic Republic of the Congo Estonia Burkina Faso Chile Ethiopia Ukraine Czech Republic Romania Egypt Uruguay Tunisia Spain
51
action count
action greater
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type literary work
action count
action filter_multi_types
action find_reverse
entity Latvia
relation country of origin
type film genre
type literary work
[[{'concept': 'film genre'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) ?r WHERE { VALUES ( ?f ) { ( ontology:film_genre ) ( ontology:literary_work ) } . ?k rdf:type ?f } GROUP BY ?r } . FILTER ( ?d > ?p ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?p ) WHERE { ?q property:country_of_origin resource:Latvia . { { ?q rdf:type ontology:film_genre } UNION { ?q rdf:type ontology:literary_work } } } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q34
P180
Q15617994 Q3305213 Q340169
USER
Which administrative territories are expressed in approximately the same number of paintings and medias as Sweden ?
(c(Q3305213)|c(Q340169),P180,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q340169
action count
action filter_multi_types
action find_reverse
entity Q34
relation P180
type Q3305213
type Q340169
[[{'concept': 'Q3305213'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?b ) ?h WHERE { { ?f property:P180 ?h . ?h rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q3305213 } UNION { ?f rdf:type ontology:Q340169 . ?h rdf:type ontology:Q15617994 . ?f property:P180 ?h } } GROUP BY ?h } . FILTER ( ?b = ?a ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) WHERE { ?z property:P180 resource:Q34 . { { ?z rdf:type ontology:Q3305213 } UNION { ?z rdf:type ontology:Q340169 } } } } }
Sweden
action approx
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type painting
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type media
action count
action filter_multi_types
action find_reverse
entity Sweden
relation depicts
type painting
type media
[[{'concept': 'painting'}, {'concept': 'media'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?b ) ?h WHERE { { ?f property:depicts ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:painting } UNION { ?f rdf:type ontology:media . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f property:depicts ?h } } GROUP BY ?h } . FILTER ( ?b = ?a ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) WHERE { ?z property:depicts resource:Sweden . { { ?z rdf:type ontology:painting } UNION { ?z rdf:type ontology:media } } } } }
[]
designation for an administrative territorial entity painting media
Q155 Q159 Q55
SYSTEM
Brazil, Russia, Netherlands
Q1256 Q1462 Q241744 Q668 Q142 Q55 Q47505 Q148 Q128081 Q711 Q243467 Q72672 Q1460 Q660687 Q159 Q41 Q155 Q794 Q160262 Q243128 Q254356 Q15260970 Q822 Q11343 Q268214 Q13376 Q12594 Q34 Q928 Q39 Q858 Q199952 Q854 Q1280 Q1282 Q20 Q27 Q188315 Q29 Q7077 Q189 Q1028 Q47821 Q12574 Q12578 Q223 Q12675 Q229 Q17 Q553347 Q551142 Q652480 Q111144 Q298 Q13320 Q186115 Q373189 Q72425 Q12657 Q1438 Q26300792 Q183366 Q6256 Q79 Q72432 Q811 Q1016 Q1011 Q913434 Q242683 Q80563 Q376896 Q34876 Q689720 Q33788 Q12563 Q190963 Q80591 Q42288 Q1034158
(c(Q3305213)|c(Q340169),P180,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q340169
action count
action filter_multi_types
action find_reverse
entity Q34
relation P180
type Q3305213
type Q340169
[ANSWERS] are expressed in approximately the same number of paintings and medias as Sweden
[[{'concept': 'Q3305213'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?b ) ?h WHERE { { ?f property:P180 ?h . ?h rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q3305213 } UNION { ?f rdf:type ontology:Q340169 . ?h rdf:type ontology:Q15617994 . ?f property:P180 ?h } } GROUP BY ?h } . FILTER ( ?b = ?a ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) WHERE { ?z property:P180 resource:Q34 . { { ?z rdf:type ontology:Q3305213 } UNION { ?z rdf:type ontology:Q340169 } } } } }
Liguria Sardinia Ariccia India France Netherlands Dolo People's Republic of China Cori, Lazio Mongolia Subiaco Sorrento Sicily Velden am Wörther See Russia Greece Brazil Iran Caprarola Olevano Romano Murnau am Staffelsee Nantcribba Lebanon Wetter (Ruhr) Bordighera Pistoia Marne Sweden Philippines Switzerland Syria Taormina Sri Lanka Umbria Lazio Norway Ireland Porto Venere Spain Dachau Iceland Morocco Malcesine Loiret Lot-et-Garonne Greenland Oise Cyprus Japan Kobern-Gondorf Wartenberg Kennemerland Canossa Chile Savona Montmartre Bithynia Pozzuoli Nièvre Campania Rhos Y Madoc territory country Egypt Procida Nicaragua Libya Cape Verde Les Halles Genzano di Roma Amalfi Grenelle province Thörl New Caledonia Landes Frascati Atrani Asola Cap Norfeu
Brazil, Russia and Netherlands are expressed in approximately the same number of paintings and medias as Sweden
Brazil Russia Netherlands
action approx
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type painting
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type media
action count
action filter_multi_types
action find_reverse
entity Sweden
relation depicts
type painting
type media
[[{'concept': 'painting'}, {'concept': 'media'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?b ) ?h WHERE { { ?f property:depicts ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:painting } UNION { ?f rdf:type ontology:media . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f property:depicts ?h } } GROUP BY ?h } . FILTER ( ?b = ?a ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) WHERE { ?z property:depicts resource:Sweden . { { ?z rdf:type ontology:painting } UNION { ?z rdf:type ontology:media } } } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q82025
P180
Q15617994 Q3305213 Q340169
USER
And what about horn?
(c(Q3305213)|c(Q340169),P180,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q340169
action count
action filter_multi_types
action find_reverse
entity Q82025
relation P180
type Q3305213
type Q340169
[[{'concept': 'Q3305213'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) ?i WHERE { { ?r property:P180 ?i . ?i rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q3305213 } UNION { ?r property:P180 ?i . ?i rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q340169 } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { ?w property:P180 resource:Q82025 . { ?w rdf:type ?k . VALUES ( ?k ) { ( ontology:Q3305213 ) ( ontology:Q340169 ) } } } } . FILTER ( ?y = ?t ) }
horn
action approx
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type painting
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type media
action count
action filter_multi_types
action find_reverse
entity horn
relation depicts
type painting
type media
[[{'concept': 'painting'}, {'concept': 'media'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) ?i WHERE { { ?r property:depicts ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:painting } UNION { ?r property:depicts ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:media } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { ?w property:depicts resource:horn . { ?w rdf:type ?k . VALUES ( ?k ) { ( ontology:painting ) ( ontology:media ) } } } } . FILTER ( ?y = ?t ) }
[]
designation for an administrative territorial entity painting media
Q38 Q739 Q736
SYSTEM
Italy, Colombia, Ecuador
Q131596 Q739 Q38 Q736 Q159605 Q82025
(c(Q3305213)|c(Q340169),P180,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q340169
action count
action filter_multi_types
action find_reverse
entity Q82025
relation P180
type Q3305213
type Q340169
[ANSWERS]
[[{'concept': 'Q3305213'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) ?i WHERE { { ?r property:P180 ?i . ?i rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q3305213 } UNION { ?r property:P180 ?i . ?i rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q340169 } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { ?w property:P180 resource:Q82025 . { ?w rdf:type ?k . VALUES ( ?k ) { ( ontology:Q3305213 ) ( ontology:Q340169 ) } } } } . FILTER ( ?y = ?t ) }
farm Colombia Italy Ecuador Tivoli horn
Italy Colombia Ecuador
action approx
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type painting
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type media
action count
action filter_multi_types
action find_reverse
entity horn
relation depicts
type painting
type media
[[{'concept': 'painting'}, {'concept': 'media'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) ?i WHERE { { ?r property:depicts ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:painting } UNION { ?r property:depicts ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:media } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { ?w property:depicts resource:horn . { ?w rdf:type ?k . VALUES ( ?k ) { ( ontology:painting ) ( ontology:media ) } } } } . FILTER ( ?y = ?t ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q230
P530
Q15617994
USER
Do Georgia have ambassadorial relations with those ones ?
(Q230,P530,Q38) (Q230,P530,Q739) (Q230,P530,Q736)
action is_in
entity prev_answer
action find
entity Q230
relation P530
['Q230', 'P530', 'Q38'] ['Q230', 'P530', 'Q739'] ['Q230', 'P530', 'Q736']
ASK WHERE { VALUES ( ?q ) { ( resource:Q131596 ) ( resource:Q739 ) ( resource:Q38 ) } . resource:Q230 property:P530 ?q }
Georgia
action is_in
entity prev_answer
action find
entity Georgia
relation diplomatic relation
['Georgia', 'diplomatic relation', 'Italy'] ['Georgia', 'diplomatic relation', 'Colombia'] ['Georgia', 'diplomatic relation', 'Ecuador']
ASK WHERE { VALUES ( ?q ) { ( resource:farm ) ( resource:Colombia ) ( resource:Italy ) } . resource:Georgia property:diplomatic_relation ?q }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q230,P530,Q38) (Q230,P530,Q739) (Q230,P530,Q736)
action is_in
entity prev_answer
action find
entity Q230
relation P530
[ANSWER]
['Q230', 'P530', 'Q38'] ['Q230', 'P530', 'Q739'] ['Q230', 'P530', 'Q736']
ASK WHERE { VALUES ( ?q ) { ( resource:Q131596 ) ( resource:Q739 ) ( resource:Q38 ) } . resource:Q230 property:P530 ?q }
Yes
action is_in
entity prev_answer
action find
entity Georgia
relation diplomatic relation
['Georgia', 'diplomatic relation', 'Italy'] ['Georgia', 'diplomatic relation', 'Colombia'] ['Georgia', 'diplomatic relation', 'Ecuador']
ASK WHERE { VALUES ( ?q ) { ( resource:farm ) ( resource:Colombia ) ( resource:Italy ) } . resource:Georgia property:diplomatic_relation ?q }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q60 Q7838859 Q4065684
P17
Q15617994
USER
Is New York City present in Treswithian Downs and St. Andrews ?
(Q60,P17,Q7838859) (Q60,P17,Q4065684)
action is_in
entity Q60
action intersection
action find_reverse
entity Q7838859
relation P17
action find_reverse
entity Q4065684
relation P17
['Q60', 'P17', 'Q7838859'] ['Q60', 'P17', 'Q4065684']
ASK WHERE { resource:Q60 property:P17 resource:Q7838859 . resource:Q60 property:P17 resource:Q4065684 }
New York City Treswithian Downs St. Andrews
action is_in
entity New York City
action intersection
action find_reverse
entity Treswithian Downs
relation country
action find_reverse
entity St. Andrews
relation country
['New York City', 'country', 'Treswithian Downs'] ['New York City', 'country', 'St. Andrews']
ASK WHERE { resource:New_York_City property:country resource:Treswithian_Downs . resource:New_York_City property:country resource:St._Andrews }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q60,P17,Q7838859) (Q60,P17,Q4065684)
action is_in
entity Q60
action intersection
action find_reverse
entity Q7838859
relation P17
action find_reverse
entity Q4065684
relation P17
[ANSWER]
['Q60', 'P17', 'Q7838859'] ['Q60', 'P17', 'Q4065684']
ASK WHERE { resource:Q60 property:P17 resource:Q7838859 . resource:Q60 property:P17 resource:Q4065684 }
No
action is_in
entity New York City
action intersection
action find_reverse
entity Treswithian Downs
relation country
action find_reverse
entity St. Andrews
relation country
['New York City', 'country', 'Treswithian Downs'] ['New York City', 'country', 'St. Andrews']
ASK WHERE { resource:New_York_City property:country resource:Treswithian_Downs . resource:New_York_City property:country resource:St._Andrews }
[]