Simple Question (Direct)
Simple Question
Q20745441
P119
Q39614
USER
Where was Pierre Langlois buried ?
(Q20745441,P119,c(Q39614))
action filter_type
action find
entity Q20745441
relation P119
type Q39614
['Q20745441', 'P119', {'concept': 'Q39614'}]
SELECT DISTINCT ?k WHERE { resource:Q20745441 property:P119 ?k . ?k rdf:type ontology:Q39614 }
Pierre Langlois
action filter_type
action find
entity Pierre Langlois
relation place of burial
type cemetery
['Pierre Langlois', 'place of burial', {'concept': 'cemetery'}]
SELECT DISTINCT ?k WHERE { resource:Pierre_Langlois property:place_of_burial ?k . ?k rdf:type ontology:cemetery }
[]
cemetery
Q311
SYSTEM
Père Lachaise Cemetery
Q311
(Q20745441,P119,c(Q39614))
action filter_type
action find
entity Q20745441
relation P119
type Q39614
Pierre Langlois was buried in [ANSWER]
['Q20745441', 'P119', {'concept': 'Q39614'}]
SELECT DISTINCT ?k WHERE { resource:Q20745441 property:P119 ?k . ?k rdf:type ontology:Q39614 }
Père Lachaise Cemetery
Pierre Langlois was buried in Père Lachaise Cemetery
Père Lachaise Cemetery
action filter_type
action find
entity Pierre Langlois
relation place of burial
type cemetery
['Pierre Langlois', 'place of burial', {'concept': 'cemetery'}]
SELECT DISTINCT ?k WHERE { resource:Pierre_Langlois property:place_of_burial ?k . ?k rdf:type ontology:cemetery }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q311
P138
Q79007
USER
Which street has that cemetery as its toponym ?
(c(Q79007),P138,Q311)
action filter_type
action find_reverse
entity Q311
relation P138
type Q79007
[{'concept': 'Q79007'}, 'P138', 'Q311']
SELECT DISTINCT ?g WHERE { ?g property:P138 resource:Q311 . ?g rdf:type ontology:Q79007 }
Père Lachaise Cemetery
action filter_type
action find_reverse
entity Père Lachaise Cemetery
relation named after
type street
[{'concept': 'street'}, 'named after', 'Père Lachaise Cemetery']
SELECT DISTINCT ?g WHERE { ?g property:named_after resource:Père_Lachaise_Cemetery . ?g rdf:type ontology:street }
[]
street
Q2874190
SYSTEM
avenue du Père-Lachaise
Q2874190
(c(Q79007),P138,Q311)
action filter_type
action find_reverse
entity Q311
relation P138
type Q79007
[ANSWER] has that cemetery as its toponym
[{'concept': 'Q79007'}, 'P138', 'Q311']
SELECT DISTINCT ?g WHERE { ?g property:P138 resource:Q311 . ?g rdf:type ontology:Q79007 }
avenue du Père-Lachaise
Avenue du Père-Lachaise has that cemetery as its toponym
avenue du Père-Lachaise
action filter_type
action find_reverse
entity Père Lachaise Cemetery
relation named after
type street
[{'concept': 'street'}, 'named after', 'Père Lachaise Cemetery']
SELECT DISTINCT ?g WHERE { ?g property:named_after resource:Père_Lachaise_Cemetery . ?g rdf:type ontology:street }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q311
P669
Q34442
USER
What the road where Père Lachaise Cemetery is located on ?
(Q311,P669,c(Q34442))
action filter_type
action find
entity Q311
relation P669
type Q34442
['Q311', 'P669', {'concept': 'Q34442'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q34442 . resource:Q311 property:P669 ?h }
Père Lachaise Cemetery
action filter_type
action find
entity Père Lachaise Cemetery
relation located on street
type road
['Père Lachaise Cemetery', 'located on street', {'concept': 'road'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:road . resource:Père_Lachaise_Cemetery property:located_on_street ?h }
[]
road
Q3452562
SYSTEM
rue du Repos
Q3452562
(Q311,P669,c(Q34442))
action filter_type
action find
entity Q311
relation P669
type Q34442
Located 1 [ANSWER]
['Q311', 'P669', {'concept': 'Q34442'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q34442 . resource:Q311 property:P669 ?h }
rue du Repos
Located 1 rue du Repos
rue du Repos
action filter_type
action find
entity Père Lachaise Cemetery
relation located on street
type road
['Père Lachaise Cemetery', 'located on street', {'concept': 'road'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:road . resource:Père_Lachaise_Cemetery property:located_on_street ?h }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q3452562
P47
Q79007 Q34442
USER
How many streets and roads have a shared border with rue du Repos ?
(Q3452562,P47,c(Q79007)) (Q3452562,P47,c(Q34442))
action count
action union
action filter_type
action find
entity Q3452562
relation P47
type Q79007
action filter_type
action find
entity Q3452562
relation P47
type Q34442
['Q3452562', 'P47', {'concept': 'Q79007'}] ['Q3452562', 'P47', {'concept': 'Q34442'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { { resource:Q3452562 property:P47 ?x . ?x rdf:type ontology:Q79007 } UNION { resource:Q3452562 property:P47 ?x . ?x rdf:type ontology:Q34442 } }
rue du Repos
action count
action union
action filter_type
action find
entity rue du Repos
relation shares border with
type street
action filter_type
action find
entity rue du Repos
relation shares border with
type road
['rue du Repos', 'shares border with', {'concept': 'street'}] ['rue du Repos', 'shares border with', {'concept': 'road'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { { resource:rue_du_Repos property:shares_border_with ?x . ?x rdf:type ontology:street } UNION { resource:rue_du_Repos property:shares_border_with ?x . ?x rdf:type ontology:road } }
[]
street road
SYSTEM
2 streets and 2 roads
Q3449497 Q2921973 Q3448852 Q2921989
(Q3452562,P47,c(Q79007)) (Q3452562,P47,c(Q34442))
action count
action union
action filter_type
action find
entity Q3452562
relation P47
type Q79007
action filter_type
action find
entity Q3452562
relation P47
type Q34442
[ANSWER]
['Q3452562', 'P47', {'concept': 'Q79007'}] ['Q3452562', 'P47', {'concept': 'Q34442'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { { resource:Q3452562 property:P47 ?x . ?x rdf:type ontology:Q79007 } UNION { resource:Q3452562 property:P47 ?x . ?x rdf:type ontology:Q34442 } }
rue Pierre-Bayle boulevard de Charonne rue Lespagnol boulevard de Ménilmontant
2 streets and 2 roads
action count
action union
action filter_type
action find
entity rue du Repos
relation shares border with
type street
action filter_type
action find
entity rue du Repos
relation shares border with
type road
['rue du Repos', 'shares border with', {'concept': 'street'}] ['rue du Repos', 'shares border with', {'concept': 'road'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { { resource:rue_du_Repos property:shares_border_with ?x . ?x rdf:type ontology:street } UNION { resource:rue_du_Repos property:shares_border_with ?x . ?x rdf:type ontology:road } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P559
Q811430 Q34442
USER
How many constructions are a terminus for approximately 1 road ?
(c(Q34442),P559,c(Q811430))
action count
action approx
action find_reverse_tuple_counts
relation P559
type Q811430
type Q34442
value 1
[{'concept': 'Q34442'}, 'P559', {'concept': 'Q811430'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?x ) AS ?g ) WHERE { ?x property:P559 ?v . ?x rdf:type ontology:Q34442 . ?v rdf:type ontology:Q811430 } GROUP BY ?v } . FILTER ( ?g = 1 ) }
action count
action approx
action find_reverse_tuple_counts
relation terminus
type construction
type road
value 1
[{'concept': 'road'}, 'terminus', {'concept': 'construction'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?x ) AS ?g ) WHERE { ?x property:terminus ?v . ?x rdf:type ontology:road . ?v rdf:type ontology:construction } GROUP BY ?v } . FILTER ( ?g = 1 ) }
[]
construction road
SYSTEM
13
Q10646910 Q10688969 Q2379619 Q10604376 Q6365252 Q10728740 Q3259130 Q10602419 Q5948637 Q10492792 Q10728258 Q985210 Q10602536
(c(Q34442),P559,c(Q811430))
action count
action approx
action find_reverse_tuple_counts
relation P559
type Q811430
type Q34442
value 1
[ANSWER]
[{'concept': 'Q34442'}, 'P559', {'concept': 'Q811430'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?x ) AS ?g ) WHERE { ?x property:P559 ?v . ?x rdf:type ontology:Q34442 . ?v rdf:type ontology:Q811430 } GROUP BY ?v } . FILTER ( ?g = 1 ) }
Pustegränd Södra Riddarholmshamnen Söder Mälarstrand Nybrokajen Kanslikajen Övre Spannmålsgatan Longmire, Washington Norra Brobänken Hurstbridge railway station Evert Taubes terrass Östra Brobänken London Victoria station Norra Riddarholmshamnen
13
action count
action approx
action find_reverse_tuple_counts
relation terminus
type construction
type road
value 1
[{'concept': 'road'}, 'terminus', {'concept': 'construction'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?x ) AS ?g ) WHERE { ?x property:terminus ?v . ?x rdf:type ontology:road . ?v rdf:type ontology:construction } GROUP BY ?v } . FILTER ( ?g = 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q3452562
P47
Q79007 Q34442
USER
How many streets or roads do rue du Repos share a border with ?
(c(Q79007),P47,Q3452562) (c(Q34442),P47,Q3452562)
action count
action union
action filter_type
action find_reverse
entity Q3452562
relation P47
type Q79007
action filter_type
action find_reverse
entity Q3452562
relation P47
type Q34442
[{'concept': 'Q79007'}, 'P47', 'Q3452562'] [{'concept': 'Q34442'}, 'P47', 'Q3452562']
SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { VALUES ( ?n ) { ( ontology:Q79007 ) ( ontology:Q34442 ) } . ?c rdf:type ?n }
rue du Repos
action count
action union
action filter_type
action find_reverse
entity rue du Repos
relation shares border with
type street
action filter_type
action find_reverse
entity rue du Repos
relation shares border with
type road
[{'concept': 'street'}, 'shares border with', 'rue du Repos'] [{'concept': 'road'}, 'shares border with', 'rue du Repos']
SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { VALUES ( ?n ) { ( ontology:street ) ( ontology:road ) } . ?c rdf:type ?n }
[]
street road
SYSTEM
4
Q3449497 Q2921973 Q3448852 Q2921989
(c(Q79007),P47,Q3452562) (c(Q34442),P47,Q3452562)
action count
action union
action filter_type
action find_reverse
entity Q3452562
relation P47
type Q79007
action filter_type
action find_reverse
entity Q3452562
relation P47
type Q34442
[ANSWER]
[{'concept': 'Q79007'}, 'P47', 'Q3452562'] [{'concept': 'Q34442'}, 'P47', 'Q3452562']
SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { VALUES ( ?n ) { ( ontology:Q79007 ) ( ontology:Q34442 ) } . ?c rdf:type ?n }
rue Pierre-Bayle boulevard de Charonne rue Lespagnol boulevard de Ménilmontant
4
action count
action union
action filter_type
action find_reverse
entity rue du Repos
relation shares border with
type street
action filter_type
action find_reverse
entity rue du Repos
relation shares border with
type road
[{'concept': 'street'}, 'shares border with', 'rue du Repos'] [{'concept': 'road'}, 'shares border with', 'rue du Repos']
SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { VALUES ( ?n ) { ( ontology:street ) ( ontology:road ) } . ?c rdf:type ?n }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q3452562
P47
Q79007 Q34442
USER
How many streets and roads have a shared border with rue du Repos ?
(Q3452562,P47,c(Q79007)) (Q3452562,P47,c(Q34442))
action count
action union
action filter_type
action find
entity Q3452562
relation P47
type Q79007
action filter_type
action find
entity Q3452562
relation P47
type Q34442
['Q3452562', 'P47', {'concept': 'Q79007'}] ['Q3452562', 'P47', {'concept': 'Q34442'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) WHERE { VALUES ( ?n ) { ( ontology:Q34442 ) ( ontology:Q79007 ) } . ?g rdf:type ?n }
rue du Repos
action count
action union
action filter_type
action find
entity rue du Repos
relation shares border with
type street
action filter_type
action find
entity rue du Repos
relation shares border with
type road
['rue du Repos', 'shares border with', {'concept': 'street'}] ['rue du Repos', 'shares border with', {'concept': 'road'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) WHERE { VALUES ( ?n ) { ( ontology:road ) ( ontology:street ) } . ?g rdf:type ?n }
[]
street road
SYSTEM
2 streets and 2 roads
Q3449497 Q2921973 Q3448852 Q2921989
(Q3452562,P47,c(Q79007)) (Q3452562,P47,c(Q34442))
action count
action union
action filter_type
action find
entity Q3452562
relation P47
type Q79007
action filter_type
action find
entity Q3452562
relation P47
type Q34442
[ANSWER]
['Q3452562', 'P47', {'concept': 'Q79007'}] ['Q3452562', 'P47', {'concept': 'Q34442'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) WHERE { VALUES ( ?n ) { ( ontology:Q34442 ) ( ontology:Q79007 ) } . ?g rdf:type ?n }
rue Pierre-Bayle boulevard de Charonne rue Lespagnol boulevard de Ménilmontant
2 streets and 2 roads
action count
action union
action filter_type
action find
entity rue du Repos
relation shares border with
type street
action filter_type
action find
entity rue du Repos
relation shares border with
type road
['rue du Repos', 'shares border with', {'concept': 'street'}] ['rue du Repos', 'shares border with', {'concept': 'road'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) WHERE { VALUES ( ?n ) { ( ontology:road ) ( ontology:street ) } . ?g rdf:type ?n }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q20745441
P25
Q502895
USER
Which person was the mother of Pierre Langlois ?
(Q20745441,P25,c(Q502895))
action filter_type
action find
entity Q20745441
relation P25
type Q502895
['Q20745441', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q20745441 property:P25 ?e . ?e rdf:type ontology:Q502895 }
Pierre Langlois
action filter_type
action find
entity Pierre Langlois
relation mother
type common name
['Pierre Langlois', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Pierre_Langlois property:mother ?e . ?e rdf:type ontology:common_name }
[]
common name
Q20745455
SYSTEM
Marie-Henriette Le Blanc
Q20745455
(Q20745441,P25,c(Q502895))
action filter_type
action find
entity Q20745441
relation P25
type Q502895
[ANSWER] was the mother of Pierre Langlois
['Q20745441', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q20745441 property:P25 ?e . ?e rdf:type ontology:Q502895 }
Marie-Henriette Le Blanc
Marie-Henriette Le Blanc was the mother of Pierre Langlois
Marie-Henriette Le Blanc
action filter_type
action find
entity Pierre Langlois
relation mother
type common name
['Pierre Langlois', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Pierre_Langlois property:mother ?e . ?e rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q20745441
P7
Q502895
USER
Who are siblings of Pierre Langlois ?
(c(Q502895),P7,Q20745441)
action filter_type
action find
entity Q20745441
relation P7
type Q502895
[{'concept': 'Q502895'}, 'P7', 'Q20745441']
SELECT DISTINCT ?q WHERE { resource:Q20745441 property:P7 ?q . ?q rdf:type ontology:Q502895 }
Pierre Langlois
action filter_type
action find
entity Pierre Langlois
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Pierre Langlois']
SELECT DISTINCT ?q WHERE { resource:Pierre_Langlois property:brother ?q . ?q rdf:type ontology:common_name }
[]
common name
Q20745432 Q20745450
SYSTEM
Paul Langlois, Charles Langlois
Q20745432 Q20745450
(c(Q502895),P7,Q20745441)
action filter_type
action find
entity Q20745441
relation P7
type Q502895
Siblings of Pierre Langlois are born [ANSWERS]
[{'concept': 'Q502895'}, 'P7', 'Q20745441']
SELECT DISTINCT ?q WHERE { resource:Q20745441 property:P7 ?q . ?q rdf:type ontology:Q502895 }
Paul Langlois Charles Langlois
Siblings of Pierre Langlois are born Paul Langlois and Charles Langlois
Paul Langlois Charles Langlois
action filter_type
action find
entity Pierre Langlois
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Pierre Langlois']
SELECT DISTINCT ?q WHERE { resource:Pierre_Langlois property:brother ?q . ?q rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q20745432
P27
Q15617994
USER
Which administrative territory does Paul Langlois belong to ?
(Q20745432,P27,c(Q15617994))
action filter_type
action find
entity Q20745432
relation P27
type Q15617994
['Q20745432', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q20745432 property:P27 ?o . ?o rdf:type ontology:Q15617994 }
Paul Langlois
action filter_type
action find
entity Paul Langlois
relation country of citizenship
type designation for an administrative territorial entity
['Paul Langlois', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Paul_Langlois property:country_of_citizenship ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q20745432,P27,c(Q15617994))
action filter_type
action find
entity Q20745432
relation P27
type Q15617994
Paul Langlois belongs to [ANSWER]
['Q20745432', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q20745432 property:P27 ?o . ?o rdf:type ontology:Q15617994 }
France
Paul Langlois belongs to France
France
action filter_type
action find
entity Paul Langlois
relation country of citizenship
type designation for an administrative territorial entity
['Paul Langlois', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Paul_Langlois property:country_of_citizenship ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q27723
Q15617994
USER
And what about Georges Trombert?
(Q27723,P27,c(Q15617994))
action filter_type
action find
entity Q27723
relation P27
type Q15617994
['Q27723', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q27723 property:P27 ?w . ?w rdf:type ontology:Q15617994 }
Georges Trombert
action filter_type
action find
entity Georges Trombert
relation country of citizenship
type designation for an administrative territorial entity
['Georges Trombert', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Georges_Trombert property:country_of_citizenship ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q27723,P27,c(Q15617994))
action filter_type
action find
entity Q27723
relation P27
type Q15617994
[ANSWER]
['Q27723', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q27723 property:P27 ?w . ?w rdf:type ontology:Q15617994 }
France
France
action filter_type
action find
entity Georges Trombert
relation country of citizenship
type designation for an administrative territorial entity
['Georges Trombert', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Georges_Trombert property:country_of_citizenship ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
How many political territories are known to have diplomatic connections with approximately 93 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 93
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?g ) AS ?f ) WHERE { ?e property:P530 ?g . ?e rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q15617994 } GROUP BY ?e } . FILTER ( ?f = 93 ) }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 93
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?g ) AS ?f ) WHERE { ?e property:diplomatic_relation ?g . ?e rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } . FILTER ( ?f = 93 ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
2
Q183 Q408
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 93
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?g ) AS ?f ) WHERE { ?e property:P530 ?g . ?e rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q15617994 } GROUP BY ?e } . FILTER ( ?f = 93 ) }
Germany Australia
2
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 93
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?g ) AS ?f ) WHERE { ?e property:diplomatic_relation ?g . ?e rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } . FILTER ( ?f = 93 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q20745432 Q15433504
P106
Q12737077
USER
How many occupations have Paul Langlois or Master of the Lucas-Months as his/her as a career ?
(Q20745432,P106,c(Q12737077)) (Q15433504,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q20745432
relation P106
type Q12737077
action filter_type
action find
entity Q15433504
relation P106
type Q12737077
['Q20745432', 'P106', {'concept': 'Q12737077'}] ['Q15433504', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?x ) WHERE { { resource:Q20745432 property:P106 ?v . ?v rdf:type ontology:Q12737077 } UNION { ?v rdf:type ontology:Q12737077 . resource:Q15433504 property:P106 ?v } }
Paul Langlois Master of the Lucas-Months
action count
action union
action filter_type
action find
entity Paul Langlois
relation occupation
type occupation
action filter_type
action find
entity Master of the Lucas-Months
relation occupation
type occupation
['Paul Langlois', 'occupation', {'concept': 'occupation'}] ['Master of the Lucas-Months', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?x ) WHERE { { resource:Paul_Langlois property:occupation ?v . ?v rdf:type ontology:occupation } UNION { ?v rdf:type ontology:occupation . resource:Master_of_the_Lucas-Months property:occupation ?v } }
[]
occupation
SYSTEM
2
Q1028181 Q4991371
(Q20745432,P106,c(Q12737077)) (Q15433504,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q20745432
relation P106
type Q12737077
action filter_type
action find
entity Q15433504
relation P106
type Q12737077
[ANSWER]
['Q20745432', 'P106', {'concept': 'Q12737077'}] ['Q15433504', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?x ) WHERE { { resource:Q20745432 property:P106 ?v . ?v rdf:type ontology:Q12737077 } UNION { ?v rdf:type ontology:Q12737077 . resource:Q15433504 property:P106 ?v } }
painter soldier
2
action count
action union
action filter_type
action find
entity Paul Langlois
relation occupation
type occupation
action filter_type
action find
entity Master of the Lucas-Months
relation occupation
type occupation
['Paul Langlois', 'occupation', {'concept': 'occupation'}] ['Master of the Lucas-Months', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?x ) WHERE { { resource:Paul_Langlois property:occupation ?v . ?v rdf:type ontology:occupation } UNION { ?v rdf:type ontology:occupation . resource:Master_of_the_Lucas-Months property:occupation ?v } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1019
P495
Q15617994 Q201658 Q7725634
USER
How many administrative territories are the countries of origin of approximately the same number of film genres and literary works as Madagascar ?
(c(Q201658)|c(Q7725634),P495,c(Q15617994))
action count
action approx
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 Q1019
relation P495
type Q201658
type Q7725634
[[{'concept': 'Q201658'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?t ) AS ?k ) WHERE { { ?t property:P495 ?j . ?j rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q201658 } UNION { ?t property:P495 ?j . ?j rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q7725634 } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { ?h property:P495 resource:Q1019 . { { ?h rdf:type ontology:Q201658 } UNION { ?h rdf:type ontology:Q7725634 } } } } . FILTER ( ?k = ?z ) }
Madagascar
action count
action approx
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 Madagascar
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 ( ?j ) AS ?x ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?t ) AS ?k ) WHERE { { ?t property:country_of_origin ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:film_genre } UNION { ?t property:country_of_origin ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:literary_work } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { ?h property:country_of_origin resource:Madagascar . { { ?h rdf:type ontology:film_genre } UNION { ?h rdf:type ontology:literary_work } } } } . FILTER ( ?k = ?z ) }
[]
designation for an administrative territorial entity film genre literary work
SYSTEM
167
Q805 Q804 Q801 Q800 Q1462 Q419 Q668 Q414 Q55 Q145 Q12536 Q262 Q148 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q29 Q672 Q176 Q863 Q869 Q953
(c(Q201658)|c(Q7725634),P495,c(Q15617994))
action count
action approx
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 Q1019
relation P495
type Q201658
type Q7725634
[ANSWER]
[[{'concept': 'Q201658'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?t ) AS ?k ) WHERE { { ?t property:P495 ?j . ?j rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q201658 } UNION { ?t property:P495 ?j . ?j rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q7725634 } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { ?h property:P495 resource:Q1019 . { { ?h rdf:type ontology:Q201658 } UNION { ?h rdf:type ontology:Q7725634 } } } } . FILTER ( ?k = ?z ) }
Yemen Panama Israel Costa Rica Sardinia Peru India Argentina Netherlands United Kingdom Abbasid caliphate Algeria People's Republic of China Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Spain Tuvalu Quebec Tajikistan Thailand Zambia
167
action count
action approx
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 Madagascar
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 ( ?j ) AS ?x ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?t ) AS ?k ) WHERE { { ?t property:country_of_origin ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:film_genre } UNION { ?t property:country_of_origin ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:literary_work } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { ?h property:country_of_origin resource:Madagascar . { { ?h rdf:type ontology:film_genre } UNION { ?h rdf:type ontology:literary_work } } } } . FILTER ( ?k = ?z ) }
[]