Simple Question (Direct)
Simple Question
Q810973
P611
Q1530022
USER
What religion is Baptista Mantuanus affiliated to ?
(Q810973,P611,c(Q1530022))
action filter_type
action find
entity Q810973
relation P611
type Q1530022
['Q810973', 'P611', {'concept': 'Q1530022'}]
SELECT DISTINCT ?s WHERE { resource:Q810973 property:P611 ?s . ?s rdf:type ontology:Q1530022 }
Baptista Mantuanus
action filter_type
action find
entity Baptista Mantuanus
relation religious order
type religious organization
['Baptista Mantuanus', 'religious order', {'concept': 'religious organization'}]
SELECT DISTINCT ?s WHERE { resource:Baptista_Mantuanus property:religious_order ?s . ?s rdf:type ontology:religious_organization }
[]
religious organization
Q186277
SYSTEM
Carmelites
Q186277
(Q810973,P611,c(Q1530022))
action filter_type
action find
entity Q810973
relation P611
type Q1530022
Baptista Mantuanus is affiliated with [ANSWER]
['Q810973', 'P611', {'concept': 'Q1530022'}]
SELECT DISTINCT ?s WHERE { resource:Q810973 property:P611 ?s . ?s rdf:type ontology:Q1530022 }
Carmelites
Baptista Mantuanus is affiliated with Carmelites
Carmelites
action filter_type
action find
entity Baptista Mantuanus
relation religious order
type religious organization
['Baptista Mantuanus', 'religious order', {'concept': 'religious organization'}]
SELECT DISTINCT ?s WHERE { resource:Baptista_Mantuanus property:religious_order ?s . ?s rdf:type ontology:religious_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q810973
P1412
Q34770
USER
Which language is spoken by Baptista Mantuanus ?
(Q810973,P1412,c(Q34770))
action filter_type
action find
entity Q810973
relation P1412
type Q34770
['Q810973', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?w WHERE { resource:Q810973 property:P1412 ?w . ?w rdf:type ontology:Q34770 }
Baptista Mantuanus
action filter_type
action find
entity Baptista Mantuanus
relation languages spoken, written or signed
type language
['Baptista Mantuanus', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?w WHERE { resource:Baptista_Mantuanus property:languages_spoken,_written_or_signed ?w . ?w rdf:type ontology:language }
[]
language
Q397
SYSTEM
Latin
Q397
(Q810973,P1412,c(Q34770))
action filter_type
action find
entity Q810973
relation P1412
type Q34770
As [ANSWER] is spoken by Baptista Mantuanus
['Q810973', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?w WHERE { resource:Q810973 property:P1412 ?w . ?w rdf:type ontology:Q34770 }
Latin
As Latin is spoken by Baptista Mantuanus
Latin
action filter_type
action find
entity Baptista Mantuanus
relation languages spoken, written or signed
type language
['Baptista Mantuanus', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?w WHERE { resource:Baptista_Mantuanus property:languages_spoken,_written_or_signed ?w . ?w rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q397
P172
Q502895
USER
Who have that language as his/her race ?
(c(Q502895),P172,Q397)
action filter_type
action find_reverse
entity Q397
relation P172
type Q502895
[{'concept': 'Q502895'}, 'P172', 'Q397']
SELECT DISTINCT ?o WHERE { ?o property:P172 resource:Q397 . ?o rdf:type ontology:Q502895 }
Latin
action filter_type
action find_reverse
entity Latin
relation ethnic group
type common name
[{'concept': 'common name'}, 'ethnic group', 'Latin']
SELECT DISTINCT ?o WHERE { ?o property:ethnic_group resource:Latin . ?o rdf:type ontology:common_name }
[]
common name
Q35823 Q4716660
SYSTEM
Ann Marie Rios, Alex Baldwin
Q35823 Q4716660
(c(Q502895),P172,Q397)
action filter_type
action find_reverse
entity Q397
relation P172
type Q502895
[ANSWERS] have that language as his/her race
[{'concept': 'Q502895'}, 'P172', 'Q397']
SELECT DISTINCT ?o WHERE { ?o property:P172 resource:Q397 . ?o rdf:type ontology:Q502895 }
Ann Marie Rios Alex Baldwin
Ann Marie Rios and Alex Baldwin have that language as his/her race
Ann Marie Rios Alex Baldwin
action filter_type
action find_reverse
entity Latin
relation ethnic group
type common name
[{'concept': 'common name'}, 'ethnic group', 'Latin']
SELECT DISTINCT ?o WHERE { ?o property:ethnic_group resource:Latin . ?o rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q35823 Q4716660
P27
Q15617994
USER
Which administrative territories are the countries of citizenship of Ann Marie Rios and Alex Baldwin ?
(Q35823,P27,c(Q15617994)) (Q4716660,P27,c(Q15617994))
action union
action filter_type
action find
entity Q35823
relation P27
type Q15617994
action filter_type
action find
entity Q4716660
relation P27
type Q15617994
['Q35823', 'P27', {'concept': 'Q15617994'}] ['Q4716660', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { ?k property:P27 ?f . VALUES ( ?k ) { ( resource:Q35823 ) ( resource:Q4716660 ) } }
Ann Marie Rios Alex Baldwin
action union
action filter_type
action find
entity Ann Marie Rios
relation country of citizenship
type designation for an administrative territorial entity
action filter_type
action find
entity Alex Baldwin
relation country of citizenship
type designation for an administrative territorial entity
['Ann Marie Rios', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Alex Baldwin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?k property:country_of_citizenship ?f . VALUES ( ?k ) { ( resource:Ann_Marie_Rios ) ( resource:Alex_Baldwin ) } }
[]
designation for an administrative territorial entity
Q30 Q30
SYSTEM
United States of America
Q30 Q30
(Q35823,P27,c(Q15617994)) (Q4716660,P27,c(Q15617994))
action union
action filter_type
action find
entity Q35823
relation P27
type Q15617994
action filter_type
action find
entity Q4716660
relation P27
type Q15617994
[ANSWER] and [ANSWER] are the countries of citizenship of Ann Marie Rios and Alex Baldwin
['Q35823', 'P27', {'concept': 'Q15617994'}] ['Q4716660', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { ?k property:P27 ?f . VALUES ( ?k ) { ( resource:Q35823 ) ( resource:Q4716660 ) } }
United States of America United States of America
United States of America and United States of America are the countries of citizenship of Ann Marie Rios and Alex Baldwin
United States of America United States of America
action union
action filter_type
action find
entity Ann Marie Rios
relation country of citizenship
type designation for an administrative territorial entity
action filter_type
action find
entity Alex Baldwin
relation country of citizenship
type designation for an administrative territorial entity
['Ann Marie Rios', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Alex Baldwin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?k property:country_of_citizenship ?f . VALUES ( ?k ) { ( resource:Ann_Marie_Rios ) ( resource:Alex_Baldwin ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q397
P37
Q874405
USER
Which social group has its official language as Latin ?
(c(Q874405),P37,Q397)
action filter_type
action find_reverse
entity Q397
relation P37
type Q874405
[{'concept': 'Q874405'}, 'P37', 'Q397']
SELECT DISTINCT ?h WHERE { ?h property:P37 resource:Q397 . ?h rdf:type ontology:Q874405 }
Latin
action filter_type
action find_reverse
entity Latin
relation official language
type social group
[{'concept': 'social group'}, 'official language', 'Latin']
SELECT DISTINCT ?h WHERE { ?h property:official_language resource:Latin . ?h rdf:type ontology:social_group }
[]
social group
Q48509
SYSTEM
Pontifical Academy for Latin
Q48509
(c(Q874405),P37,Q397)
action filter_type
action find_reverse
entity Q397
relation P37
type Q874405
[ANSWER] has its official language as Latin
[{'concept': 'Q874405'}, 'P37', 'Q397']
SELECT DISTINCT ?h WHERE { ?h property:P37 resource:Q397 . ?h rdf:type ontology:Q874405 }
Pontifical Academy for Latin
Pontifical Academy for Latin has its official language as Latin
Pontifical Academy for Latin
action filter_type
action find_reverse
entity Latin
relation official language
type social group
[{'concept': 'social group'}, 'official language', 'Latin']
SELECT DISTINCT ?h WHERE { ?h property:official_language resource:Latin . ?h rdf:type ontology:social_group }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P137
Q874405 Q55488
USER
Which railway stations can be described as facility operator of max number of social groups ?
(c(Q55488),P137,c(Q874405))
action argmax
action find_tuple_counts
relation P137
type Q55488
type Q874405
[{'concept': 'Q55488'}, 'P137', {'concept': 'Q874405'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?a ) { SELECT DISTINCT ?e ( COUNT ( ?z ) AS ?l ) WHERE { ?e property:P137 ?z . ?e rdf:type ontology:Q55488 . ?z rdf:type ontology:Q874405 } GROUP BY ?e } } . { SELECT DISTINCT ?w ( COUNT ( ?i ) AS ?b ) WHERE { ?w property:P137 ?i . ?i rdf:type ontology:Q874405 . ?w rdf:type ontology:Q55488 } GROUP BY ?w } . FILTER ( ?b = ?a ) }
action argmax
action find_tuple_counts
relation operator
type railway station
type social group
[{'concept': 'railway station'}, 'operator', {'concept': 'social group'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?a ) { SELECT DISTINCT ?e ( COUNT ( ?z ) AS ?l ) WHERE { ?e property:operator ?z . ?e rdf:type ontology:railway_station . ?z rdf:type ontology:social_group } GROUP BY ?e } } . { SELECT DISTINCT ?w ( COUNT ( ?i ) AS ?b ) WHERE { ?w property:operator ?i . ?i rdf:type ontology:social_group . ?w rdf:type ontology:railway_station } GROUP BY ?w } . FILTER ( ?b = ?a ) }
[]
social group railway station
Q801447 Q800953 Q800947
SYSTEM
Shinjuku Station, Iidabashi Station, Ichigaya Station
Q3232735 Q3352537 Q801447 Q636845 Q7005193 Q5544906 Q7416357 Q3352542 Q5116720 Q800953 Q800947 Q590162 Q5447235 Q7307059 Q4681193
(c(Q55488),P137,c(Q874405))
action argmax
action find_tuple_counts
relation P137
type Q55488
type Q874405
[ANSWERS] can be described as facility operator of max number of social groups
[{'concept': 'Q55488'}, 'P137', {'concept': 'Q874405'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?a ) { SELECT DISTINCT ?e ( COUNT ( ?z ) AS ?l ) WHERE { ?e property:P137 ?z . ?e rdf:type ontology:Q55488 . ?z rdf:type ontology:Q874405 } GROUP BY ?e } } . { SELECT DISTINCT ?w ( COUNT ( ?i ) AS ?b ) WHERE { ?w property:P137 ?i . ?i rdf:type ontology:Q874405 . ?w rdf:type ontology:Q55488 } GROUP BY ?w } . FILTER ( ?b = ?a ) }
Plaza de Mayo Perú Shinjuku Station Nishi-Nippori Station New Addington tram stop George Street tram stop Sandilands tram stop Piedras Church Street tram stop Iidabashi Station Ichigaya Station Yoyogi Station Fieldway tram stop Reeves Corner tram stop Addington Village tram stop
Shinjuku Station, Iidabashi Station and Ichigaya Station can be described as facility operator of max number of social groups
Shinjuku Station Iidabashi Station Ichigaya Station
action argmax
action find_tuple_counts
relation operator
type railway station
type social group
[{'concept': 'railway station'}, 'operator', {'concept': 'social group'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?a ) { SELECT DISTINCT ?e ( COUNT ( ?z ) AS ?l ) WHERE { ?e property:operator ?z . ?e rdf:type ontology:railway_station . ?z rdf:type ontology:social_group } GROUP BY ?e } } . { SELECT DISTINCT ?w ( COUNT ( ?i ) AS ?b ) WHERE { ?w property:operator ?i . ?i rdf:type ontology:social_group . ?w rdf:type ontology:railway_station } GROUP BY ?w } . FILTER ( ?b = ?a ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P669
Q83620 Q55488
USER
Which thoroughfares are the locations of min number of railway stations ?
(c(Q55488),P669,Q3443530)
action argmin
action find_reverse_tuple_counts
relation P669
type Q83620
type Q55488
[{'concept': 'Q55488'}, 'P669', 'Q3443530']
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MIN ( ?o ) AS ?u ) { SELECT DISTINCT ?s ( COUNT ( ?k ) AS ?o ) WHERE { ?k property:P669 ?s . ?s rdf:type ontology:Q83620 . ?k rdf:type ontology:Q55488 } GROUP BY ?s } } . { SELECT DISTINCT ?t ( COUNT ( ?q ) AS ?p ) WHERE { ?q property:P669 ?t . ?q rdf:type ontology:Q55488 . ?t rdf:type ontology:Q83620 } GROUP BY ?t } . FILTER ( ?p = ?u ) }
action argmin
action find_reverse_tuple_counts
relation located on street
type thoroughfare
type railway station
[{'concept': 'railway station'}, 'located on street', 'Quebec Route 111']
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MIN ( ?o ) AS ?u ) { SELECT DISTINCT ?s ( COUNT ( ?k ) AS ?o ) WHERE { ?k property:located_on_street ?s . ?s rdf:type ontology:thoroughfare . ?k rdf:type ontology:railway_station } GROUP BY ?s } } . { SELECT DISTINCT ?t ( COUNT ( ?q ) AS ?p ) WHERE { ?q property:located_on_street ?t . ?q rdf:type ontology:railway_station . ?t rdf:type ontology:thoroughfare } GROUP BY ?t } . FILTER ( ?p = ?u ) }
[]
thoroughfare railway station
Q3412690 Q3001371 Q1146988
SYSTEM
quai de Valmy, cours de Vincennes, quai d'Orsay
Q925349 Q15030785 Q5601894 Q659373 Q842930 Q5025781 Q7452693 Q17451598 Q3566460 Q16889211 Q3443567 Q3090472 Q7270510 Q2104197 Q1124023 Q2634407 Q18659847 Q169430 Q18659845 Q378991 Q4581969 Q5094624 Q3412695 Q3412693 Q1146988 Q5139684 Q1475467 Q5500055 Q16887011 Q7064249 Q4253168 Q1782648 Q373302 Q612382 Q5882916 Q6680226 Q7269996 Q1782039 Q1068693 Q2905663 Q3412683 Q5187677 Q5164086 Q7179381 Q7097982 Q15224048 Q5450926 Q11893194 Q5522302 Q892187 Q10476968 Q893034 Q2838796 Q3068338 Q3760653 Q7590464 Q3412685 Q16313103 Q3258965 Q2962296 Q22083647 Q2550870 Q18682440 Q4828125 Q846686 Q5137008 Q26311261 Q15213255 Q3368042 Q8023371 Q2436345 Q3412667 Q3412665 Q2741353 Q4649528 Q1146645 Q7798333 Q868616 Q3412709 Q4475857 Q895073 Q7231999 Q3308692 Q6773888 Q1647486 Q1739015 Q12060528 Q8022857 Q1365199 Q192687 Q19581777 Q747271 Q7374297 Q11698324 Q3412658 Q805829 Q215255 Q5654882 Q3412713 Q5068795 Q3412716 Q27464910 Q5196144 Q6781594 Q7083664 Q7235592 Q21585418 Q4972570 Q7291867 Q1070409 Q23688700 Q4968916 Q26303488 Q2796839 Q3412645 Q3161432 Q17150715 Q1631720 Q479469 Q5122150 Q3001371 Q21097991 Q3412725 Q23891209 Q2926113 Q7999677 Q4946315 Q1770585 Q3365085 Q279859 Q1631609 Q1900734 Q6412079 Q6188196 Q5086153 Q19461206 Q5210648 Q756816 Q756819 Q7781517 Q3412738 Q18619695 Q3412735 Q3412630 Q22344691 Q79934 Q27837160 Q8033457 Q22084204 Q2922699 Q3412690 Q14935196 Q15176495 Q4649576 Q17985385 Q389991 Q5591440 Q893261 Q3001832 Q20005749 Q5905761 Q3368123 Q773458 Q3312645 Q3444041 Q5312872 Q866797 Q5123401 Q8032277 Q3090980 Q6126123 Q20220110 Q6483175 Q5607603 Q3443530
(c(Q55488),P669,Q3443530)
action argmin
action find_reverse_tuple_counts
relation P669
type Q83620
type Q55488
[ANSWERS] are the locations of min number of railway stations
[{'concept': 'Q55488'}, 'P669', 'Q3443530']
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MIN ( ?o ) AS ?u ) { SELECT DISTINCT ?s ( COUNT ( ?k ) AS ?o ) WHERE { ?k property:P669 ?s . ?s rdf:type ontology:Q83620 . ?k rdf:type ontology:Q55488 } GROUP BY ?s } } . { SELECT DISTINCT ?t ( COUNT ( ?q ) AS ?p ) WHERE { ?q property:P669 ?t . ?q rdf:type ontology:Q55488 . ?t rdf:type ontology:Q83620 } GROUP BY ?t } . FILTER ( ?p = ?u ) }
Pall Mall Stoke Newington Church Street Greek Street quai de Conti The Mall Camden High Street Serangoon Road Dalbyvägen Greek National Road 1 Jurong Town Hall Road Quebec Route 132 quai Voltaire Queen Street Poppelsdorfer Allee Piccadilly St James's Street Main road 86 Jermyn Street Main road 79 Park Lane Queen Victoria Street Cheyne Walk quai de l'Archevêché quai de l'Hôtel-de-Ville quai d'Orsay Cockspur Street E 11 road Free School Lane Sembawang Road Nova Scotia Trunk 2 Lime Street High Holborn King's Road Sloane Street Hollywood Road Lordship Lane, Haringey Queen's Gate Cornhill Cheapside Exhibition Road quai de Grenelle Cromwell Road Constitution Avenue Petty France Ophir Road Hill Street Finsbury Pavement Regional road 815 Garden Road Bond Street Drottning Kristinas väg Haymarket allée Célestin-Hennion Fenchurch Street George Street St. Mary Axe quai de Jemmapes Connaught Road Central London Inner Ring Road Queen Mary Road Regency Street Paseo de Recoletos Piriläntie Avenida de Almeida Ribeiro Fleet Street Clyde Road Willow Terrace Road Dean Street passage de Dantzig Wilton Crescent Maine State Route 103 quai d'Anjou quai Victor-Augagneur quai de l'Horloge A6108 road Via Domitia Throgmorton Street Hollywood Boulevard quai de la Mégisserie Universitetskaya Embankment René Lévesque Boulevard Portland Place Euston Road Marsham Street Tottenham Court Road Kensington Palace Gardens Hope Street Wilmslow Road Marylebone Road Downing Street Queen Anne's Gate quai de la Tournelle Royal Hospital Road Paternoster Row quai Saint-Bernard Colorado Boulevard Piccadilly Circus Harbour Road quai des Antilles Chalk Farm Road quai de la Seine Avenida Kim-Il Sung Curzon Street Marylebone High Street Old Church Street Poultry Warwick Lane Broadwick Street Randolph Street Victoria Embankment London Bridge Street Great Portland Street Moyka embankment‎ Collins Street quai Malaquais James Street Burlington Gardens Shaftesbury Avenue Abbey Road Commercial Street cours de Vincennes allée Georges-Besse quai des Orfèvres New Cavendish Street Brook Street Wigmore Street Borough High Street Horse Guards Road Massachusetts Avenue A1 road Savile Row Spencer Street King Street Jesus Lane Charlotte Street Creek Street Dale Street Via Aurelia Strand Theobald's Road quai Émile-Zola Rathbone Place quai du Louvre quai Anatole-France Snelling Avenue U.S. Route 66 Fuchsbräugasse Woodstock Road, Oxford Elverton Street Bow Street quai de Valmy Little Collins Street Djurgårdsbrunnsvägen A66 road Aberdeen Place Hudson Street Gracechurch Street Kingsway Coventry Street Mount Street, London Horseferry Road passage des Petits-Pères Harley Street Brompton Road route de ceinture du Lac-Daumesnil Duke Street, Marylebone Leadenhall Street City Road Wood Street, London quai André-Citroën Jalan Bukit Merah, Singapore Union Street Lancaster Gate Gresham Street Quebec Route 111
Quai de Valmy, cours de Vincennes and quai d'Orsay are the locations of min number of railway stations
quai de Valmy cours de Vincennes quai d'Orsay
action argmin
action find_reverse_tuple_counts
relation located on street
type thoroughfare
type railway station
[{'concept': 'railway station'}, 'located on street', 'Quebec Route 111']
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MIN ( ?o ) AS ?u ) { SELECT DISTINCT ?s ( COUNT ( ?k ) AS ?o ) WHERE { ?k property:located_on_street ?s . ?s rdf:type ontology:thoroughfare . ?k rdf:type ontology:railway_station } GROUP BY ?s } } . { SELECT DISTINCT ?t ( COUNT ( ?q ) AS ?p ) WHERE { ?q property:located_on_street ?t . ?q rdf:type ontology:railway_station . ?t rdf:type ontology:thoroughfare } GROUP BY ?t } . FILTER ( ?p = ?u ) }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P47
Q79007 Q34442
USER
How many streets or roads share border with that thoroughfare ?
(Q1146988,P47,c(Q79007)) (Q1146988,P47,c(Q34442)) (Q3412690,P47,c(Q79007)) (Q3412690,P47,c(Q34442)) (Q3001371,P47,c(Q79007)) (Q3001371,P47,c(Q34442)) (Q1146988,P47,c(Q79007)) (Q1146988,P47,c(Q34442))
['Q1146988', 'P47', {'concept': 'Q79007'}] ['Q1146988', 'P47', {'concept': 'Q34442'}] ['Q3412690', 'P47', {'concept': 'Q79007'}] ['Q3412690', 'P47', {'concept': 'Q34442'}] ['Q3001371', 'P47', {'concept': 'Q79007'}] ['Q3001371', 'P47', {'concept': 'Q34442'}] ['Q1146988', 'P47', {'concept': 'Q79007'}] ['Q1146988', 'P47', {'concept': 'Q34442'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q1146988 property:P47 ?z } UNION { resource:Q1146988 property:P47 ?y } UNION { resource:Q3412690 property:P47 ?z } UNION { resource:Q3412690 property:P47 ?y } UNION { resource:Q3001371 property:P47 ?z } UNION { resource:Q3001371 property:P47 ?y } UNION { resource:Q1146988 property:P47 ?z } UNION { resource:Q1146988 property:P47 ?y } } . ?z rdf:type ontology:Q79007 . ?y rdf:type ontology:Q34442 }
["quai d'Orsay", 'shares border with', {'concept': 'street'}] ["quai d'Orsay", 'shares border with', {'concept': 'road'}] ['quai de Valmy', 'shares border with', {'concept': 'street'}] ['quai de Valmy', 'shares border with', {'concept': 'road'}] ['cours de Vincennes', 'shares border with', {'concept': 'street'}] ['cours de Vincennes', 'shares border with', {'concept': 'road'}] ["quai d'Orsay", 'shares border with', {'concept': 'street'}] ["quai d'Orsay", 'shares border with', {'concept': 'road'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:quai_d'Orsay property:shares_border_with ?z } UNION { resource:quai_d'Orsay property:shares_border_with ?y } UNION { resource:quai_de_Valmy property:shares_border_with ?z } UNION { resource:quai_de_Valmy property:shares_border_with ?y } UNION { resource:cours_de_Vincennes property:shares_border_with ?z } UNION { resource:cours_de_Vincennes property:shares_border_with ?y } UNION { resource:quai_d'Orsay property:shares_border_with ?z } UNION { resource:quai_d'Orsay property:shares_border_with ?y } } . ?z rdf:type ontology:street . ?y rdf:type ontology:road }
[]
street road
Quantitative|Count|Mult. entity type|Clarification
Q3412690
SYSTEM
Did you mean quai de Valmy ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q1146988 property:P47 ?z } UNION { resource:Q1146988 property:P47 ?y } UNION { resource:Q3412690 property:P47 ?z } UNION { resource:Q3412690 property:P47 ?y } UNION { resource:Q3001371 property:P47 ?z } UNION { resource:Q3001371 property:P47 ?y } UNION { resource:Q1146988 property:P47 ?z } UNION { resource:Q1146988 property:P47 ?y } } . ?z rdf:type ontology:Q79007 . ?y rdf:type ontology:Q34442 }
Did you mean quai de Valmy ?
quai de Valmy
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:quai_d'Orsay property:shares_border_with ?z } UNION { resource:quai_d'Orsay property:shares_border_with ?y } UNION { resource:quai_de_Valmy property:shares_border_with ?z } UNION { resource:quai_de_Valmy property:shares_border_with ?y } UNION { resource:cours_de_Vincennes property:shares_border_with ?z } UNION { resource:cours_de_Vincennes property:shares_border_with ?y } UNION { resource:quai_d'Orsay property:shares_border_with ?z } UNION { resource:quai_d'Orsay property:shares_border_with ?y } } . ?z rdf:type ontology:street . ?y rdf:type ontology:road }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant quai d'Orsay. Could you tell me the answer for that?
(Q1146988,P47,c(Q79007)) (Q1146988,P47,c(Q34442)) (Q3412690,P47,c(Q79007)) (Q3412690,P47,c(Q34442)) (Q3001371,P47,c(Q79007)) (Q3001371,P47,c(Q34442)) (Q1146988,P47,c(Q79007)) (Q1146988,P47,c(Q34442))
Q1146988
['Q1146988', 'P47', {'concept': 'Q79007'}] ['Q1146988', 'P47', {'concept': 'Q34442'}] ['Q3412690', 'P47', {'concept': 'Q79007'}] ['Q3412690', 'P47', {'concept': 'Q34442'}] ['Q3001371', 'P47', {'concept': 'Q79007'}] ['Q3001371', 'P47', {'concept': 'Q34442'}] ['Q1146988', 'P47', {'concept': 'Q79007'}] ['Q1146988', 'P47', {'concept': 'Q34442'}]
["quai d'Orsay", 'shares border with', {'concept': 'street'}] ["quai d'Orsay", 'shares border with', {'concept': 'road'}] ['quai de Valmy', 'shares border with', {'concept': 'street'}] ['quai de Valmy', 'shares border with', {'concept': 'road'}] ['cours de Vincennes', 'shares border with', {'concept': 'street'}] ['cours de Vincennes', 'shares border with', {'concept': 'road'}] ["quai d'Orsay", 'shares border with', {'concept': 'street'}] ["quai d'Orsay", 'shares border with', {'concept': 'road'}]
[]
SYSTEM
13
Q3449011 Q2874170 Q3447864 Q3447672 Q533037 Q2873537 Q3448497 Q3449737 Q2921982 Q2873853 Q3446982 Q3450104 Q3448298
(Q1146988,P47,c(Q79007)) (Q1146988,P47,c(Q34442)) (Q3412690,P47,c(Q79007)) (Q3412690,P47,c(Q34442)) (Q3001371,P47,c(Q79007)) (Q3001371,P47,c(Q34442)) (Q1146988,P47,c(Q79007)) (Q1146988,P47,c(Q34442))
[ANSWER]
['Q1146988', 'P47', {'concept': 'Q79007'}] ['Q1146988', 'P47', {'concept': 'Q34442'}] ['Q3412690', 'P47', {'concept': 'Q79007'}] ['Q3412690', 'P47', {'concept': 'Q34442'}] ['Q3001371', 'P47', {'concept': 'Q79007'}] ['Q3001371', 'P47', {'concept': 'Q34442'}] ['Q1146988', 'P47', {'concept': 'Q79007'}] ['Q1146988', 'P47', {'concept': 'Q34442'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q1146988 property:P47 ?z } UNION { resource:Q1146988 property:P47 ?y } UNION { resource:Q3412690 property:P47 ?z } UNION { resource:Q3412690 property:P47 ?y } UNION { resource:Q3001371 property:P47 ?z } UNION { resource:Q3001371 property:P47 ?y } UNION { resource:Q1146988 property:P47 ?z } UNION { resource:Q1146988 property:P47 ?y } } . ?z rdf:type ontology:Q79007 . ?y rdf:type ontology:Q34442 }
rue Malar avenue du Maréchal-Gallieni rue Fabert rue Desgenettes boulevard Saint-Germain avenue Bosquet rue Jean-Nicot rue Robert-Esnault-Pelterie boulevard de La Tour-Maubourg avenue Sully-Prudhomme rue Aristide-Briand rue Surcouf rue Henri-Moissan
13
["quai d'Orsay", 'shares border with', {'concept': 'street'}] ["quai d'Orsay", 'shares border with', {'concept': 'road'}] ['quai de Valmy', 'shares border with', {'concept': 'street'}] ['quai de Valmy', 'shares border with', {'concept': 'road'}] ['cours de Vincennes', 'shares border with', {'concept': 'street'}] ['cours de Vincennes', 'shares border with', {'concept': 'road'}] ["quai d'Orsay", 'shares border with', {'concept': 'street'}] ["quai d'Orsay", 'shares border with', {'concept': 'road'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:quai_d'Orsay property:shares_border_with ?z } UNION { resource:quai_d'Orsay property:shares_border_with ?y } UNION { resource:quai_de_Valmy property:shares_border_with ?z } UNION { resource:quai_de_Valmy property:shares_border_with ?y } UNION { resource:cours_de_Vincennes property:shares_border_with ?z } UNION { resource:cours_de_Vincennes property:shares_border_with ?y } UNION { resource:quai_d'Orsay property:shares_border_with ?z } UNION { resource:quai_d'Orsay property:shares_border_with ?y } } . ?z rdf:type ontology:street . ?y rdf:type ontology:road }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q313696 Q30
P6 P40
Q502895
USER
Which people do United States of America serve as the head of government for and are children of Joseph P. Kennedy, Sr. ?
AND((Q30,P6,c(Q502895)), (Q313696,P40,c(Q502895)))
action filter_type
action intersection
action find
entity Q30
relation P6
action find
entity Q313696
relation P40
type Q502895
{'AND': [['Q30', 'P6', {'concept': 'Q502895'}], ['Q313696', 'P40', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?r WHERE { resource:Q30 property:P6 ?r . resource:Q313696 property:P40 ?r . ?r rdf:type ontology:Q502895 }
Joseph P. Kennedy, Sr. United States of America
action filter_type
action intersection
action find
entity United States of America
relation head of government
action find
entity Joseph P. Kennedy, Sr.
relation child
type common name
{'AND': [['United States of America', 'head of government', {'concept': 'common name'}], ['Joseph P. Kennedy, Sr.', 'child', {'concept': 'common name'}]]}
SELECT DISTINCT ?r WHERE { resource:United_States_of_America property:head_of_government ?r . resource:Joseph_P._Kennedy,_Sr. property:child ?r . ?r rdf:type ontology:common_name }
[]
common name
Q9696
SYSTEM
John F. Kennedy
Q9696
AND((Q30,P6,c(Q502895)), (Q313696,P40,c(Q502895)))
action filter_type
action intersection
action find
entity Q30
relation P6
action find
entity Q313696
relation P40
type Q502895
[ANSWER] United States of America serve as the head of government for and are children of Joseph P. Kennedy, Sr.
{'AND': [['Q30', 'P6', {'concept': 'Q502895'}], ['Q313696', 'P40', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?r WHERE { resource:Q30 property:P6 ?r . resource:Q313696 property:P40 ?r . ?r rdf:type ontology:Q502895 }
John F. Kennedy
John F. Kennedy United States of America serve as the head of government for and are children of Joseph P. Kennedy, Sr.
John F. Kennedy
action filter_type
action intersection
action find
entity United States of America
relation head of government
action find
entity Joseph P. Kennedy, Sr.
relation child
type common name
{'AND': [['United States of America', 'head of government', {'concept': 'common name'}], ['Joseph P. Kennedy, Sr.', 'child', {'concept': 'common name'}]]}
SELECT DISTINCT ?r WHERE { resource:United_States_of_America property:head_of_government ?r . resource:Joseph_P._Kennedy,_Sr. property:child ?r . ?r rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q939047 Q48509
P19 P159
Q56061
USER
Which administrative territories are the HQ of Pontifical Academy for Latin or are the places of birth of Kevin Kratz ?
OR((Q48509,P159,c(Q56061)), (Q939047,P19,c(Q56061)))
action filter_type
action union
action find
entity Q48509
relation P159
action find
entity Q939047
relation P19
type Q56061
{'OR': [['Q48509', 'P159', {'concept': 'Q56061'}], ['Q939047', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q56061 . { { resource:Q48509 property:P159 ?x } UNION { resource:Q939047 property:P19 ?x } } }
Kevin Kratz Pontifical Academy for Latin
action filter_type
action union
action find
entity Pontifical Academy for Latin
relation headquarters location
action find
entity Kevin Kratz
relation place of birth
type administrative territorial entity
{'OR': [['Pontifical Academy for Latin', 'headquarters location', {'concept': 'administrative territorial entity'}], ['Kevin Kratz', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:administrative_territorial_entity . { { resource:Pontifical_Academy_for_Latin property:headquarters_location ?x } UNION { resource:Kevin_Kratz property:place_of_birth ?x } } }
[]
administrative territorial entity
Q237 Q4083
SYSTEM
Vatican City, Eschweiler
Q237 Q4083
OR((Q48509,P159,c(Q56061)), (Q939047,P19,c(Q56061)))
action filter_type
action union
action find
entity Q48509
relation P159
action find
entity Q939047
relation P19
type Q56061
[ANSWERS] are the HQ of Pontifical Academy for Latin or are the places of birth of Kevin Kratz
{'OR': [['Q48509', 'P159', {'concept': 'Q56061'}], ['Q939047', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q56061 . { { resource:Q48509 property:P159 ?x } UNION { resource:Q939047 property:P19 ?x } } }
Vatican City Eschweiler
Vatican City and Eschweiler are the HQ of Pontifical Academy for Latin or are the places of birth of Kevin Kratz
Vatican City Eschweiler
action filter_type
action union
action find
entity Pontifical Academy for Latin
relation headquarters location
action find
entity Kevin Kratz
relation place of birth
type administrative territorial entity
{'OR': [['Pontifical Academy for Latin', 'headquarters location', {'concept': 'administrative territorial entity'}], ['Kevin Kratz', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:administrative_territorial_entity . { { resource:Pontifical_Academy_for_Latin property:headquarters_location ?x } UNION { resource:Kevin_Kratz property:place_of_birth ?x } } }
[]