Simple Question (Direct)
Simple Question
Q860507
P39
Q12737077
USER
Which occupation was a position occupied by Ferenc Chernel ?
(Q860507,P39,c(Q12737077))
action filter_type
action find
entity Q860507
relation P39
type Q12737077
['Q860507', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q12737077 . resource:Q860507 property:P39 ?p }
Ferenc Chernel
action filter_type
action find
entity Ferenc Chernel
relation position held
type occupation
['Ferenc Chernel', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:occupation . resource:Ferenc_Chernel property:position_held ?p }
[]
occupation
Q17590876
SYSTEM
member of the National Assembly of Hungary
Q17590876
(Q860507,P39,c(Q12737077))
action filter_type
action find
entity Q860507
relation P39
type Q12737077
A [ANSWER] was a position occupied by Ferenc Chernel
['Q860507', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q12737077 . resource:Q860507 property:P39 ?p }
member of the National Assembly of Hungary
A member of the National Assembly of Hungary was a position occupied by Ferenc Chernel
member of the National Assembly of Hungary
action filter_type
action find
entity Ferenc Chernel
relation position held
type occupation
['Ferenc Chernel', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:occupation . resource:Ferenc_Chernel property:position_held ?p }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q860507
P21
Q290
USER
What is the sex of Ferenc Chernel ?
(Q860507,P21,c(Q290))
action filter_type
action find
entity Q860507
relation P21
type Q290
['Q860507', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { resource:Q860507 property:P21 ?d . ?d rdf:type ontology:Q290 }
Ferenc Chernel
action filter_type
action find
entity Ferenc Chernel
relation gender
type sex
['Ferenc Chernel', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { resource:Ferenc_Chernel property:gender ?d . ?d rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q860507,P21,c(Q290))
action filter_type
action find
entity Q860507
relation P21
type Q290
The sex of Ferenc Chernel is the [ANSWER]
['Q860507', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { resource:Q860507 property:P21 ?d . ?d rdf:type ontology:Q290 }
male
The sex of Ferenc Chernel is the male
male
action filter_type
action find
entity Ferenc Chernel
relation gender
type sex
['Ferenc Chernel', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { resource:Ferenc_Chernel property:gender ?d . ?d rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q17590876
P361
Q1752346
USER
What is member of the National Assembly of Hungary a portion of ?
(Q17590876,P361,c(Q1752346))
action filter_type
action find
entity Q17590876
relation P361
type Q1752346
['Q17590876', 'P361', {'concept': 'Q1752346'}]
SELECT DISTINCT ?m WHERE { resource:Q17590876 property:P361 ?m . ?m rdf:type ontology:Q1752346 }
member of the National Assembly of Hungary
action filter_type
action find
entity member of the National Assembly of Hungary
relation part of
type assembly
['member of the National Assembly of Hungary', 'part of', {'concept': 'assembly'}]
SELECT DISTINCT ?m WHERE { resource:member_of_the_National_Assembly_of_Hungary property:part_of ?m . ?m rdf:type ontology:assembly }
[]
assembly
Q648716
SYSTEM
National Assembly
Q648716
(Q17590876,P361,c(Q1752346))
action filter_type
action find
entity Q17590876
relation P361
type Q1752346
Member of the [ANSWER] of Hungary a portion of is the [ANSWER]
['Q17590876', 'P361', {'concept': 'Q1752346'}]
SELECT DISTINCT ?m WHERE { resource:Q17590876 property:P361 ?m . ?m rdf:type ontology:Q1752346 }
National Assembly
Member of the National Assembly of Hungary a portion of is the National Assembly
National Assembly
action filter_type
action find
entity member of the National Assembly of Hungary
relation part of
type assembly
['member of the National Assembly of Hungary', 'part of', {'concept': 'assembly'}]
SELECT DISTINCT ?m WHERE { resource:member_of_the_National_Assembly_of_Hungary property:part_of ?m . ?m rdf:type ontology:assembly }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3510898
Q1752346
USER
And also tell me about Senate of the Kingdom of Italy?
(Q3510898,P361,c(Q1752346))
action filter_type
action find
entity Q3510898
relation P361
type Q1752346
['Q3510898', 'P361', {'concept': 'Q1752346'}]
SELECT DISTINCT ?k WHERE { resource:Q3510898 property:P361 ?k . ?k rdf:type ontology:Q1752346 }
Senate of the Kingdom of Italy
action filter_type
action find
entity Senate of the Kingdom of Italy
relation part of
type assembly
['Senate of the Kingdom of Italy', 'part of', {'concept': 'assembly'}]
SELECT DISTINCT ?k WHERE { resource:Senate_of_the_Kingdom_of_Italy property:part_of ?k . ?k rdf:type ontology:assembly }
[]
assembly
Q3365546
SYSTEM
Parliament of the Kingdom of Italy
Q3365546
(Q3510898,P361,c(Q1752346))
action filter_type
action find
entity Q3510898
relation P361
type Q1752346
[ANSWER]
['Q3510898', 'P361', {'concept': 'Q1752346'}]
SELECT DISTINCT ?k WHERE { resource:Q3510898 property:P361 ?k . ?k rdf:type ontology:Q1752346 }
Parliament of the Kingdom of Italy
Parliament of the Kingdom of Italy
action filter_type
action find
entity Senate of the Kingdom of Italy
relation part of
type assembly
['Senate of the Kingdom of Italy', 'part of', {'concept': 'assembly'}]
SELECT DISTINCT ?k WHERE { resource:Senate_of_the_Kingdom_of_Italy property:part_of ?k . ?k rdf:type ontology:assembly }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P194
Q1752346 Q15617994
USER
How many administrative territories have approximately 1 assembly as their council ?
(c(Q15617994),P194,c(Q1752346))
action count
action approx
action find_tuple_counts
relation P194
type Q15617994
type Q1752346
value 1
[{'concept': 'Q15617994'}, 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?u ) WHERE { FILTER ( ?x = 1 ) . { SELECT DISTINCT ?b ( COUNT ( ?g ) AS ?x ) WHERE { ?b property:P194 ?g . ?b rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q1752346 } GROUP BY ?b } }
action count
action approx
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type assembly
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?u ) WHERE { FILTER ( ?x = 1 ) . { SELECT DISTINCT ?b ( COUNT ( ?g ) AS ?x ) WHERE { ?b property:legislative_body ?g . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:assembly } GROUP BY ?b } }
[]
assembly designation for an administrative territorial entity
SYSTEM
65
Q804 Q801 Q419 Q668 Q414 Q142 Q55 Q145 Q717 Q657 Q258 Q45 Q159 Q41 Q155 Q4628 Q1965 Q242 Q33 Q36 Q34 Q929 Q39 Q38 Q739 Q3685392 Q733 Q29999 Q854 Q153091 Q747074 Q72449 Q233 Q238 Q20 Q28 Q29 Q783 Q184 Q228 Q224 Q223 Q222 Q221 Q815731 Q96 Q229 Q697 Q298 Q754 Q750 Q213 Q211 Q214 Q215 Q218 Q219 Q16110 Q79 Q77 Q811 Q1013 Q176 Q1952 Q869
(c(Q15617994),P194,c(Q1752346))
action count
action approx
action find_tuple_counts
relation P194
type Q15617994
type Q1752346
value 1
[ANSWER]
[{'concept': 'Q15617994'}, 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?u ) WHERE { FILTER ( ?x = 1 ) . { SELECT DISTINCT ?b ( COUNT ( ?g ) AS ?x ) WHERE { ?b property:P194 ?g . ?b rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q1752346 } GROUP BY ?b } }
Panama Israel Peru India Argentina France Netherlands United Kingdom Venezuela Chad South Africa Portugal Russia Greece Brazil Faroe Islands New Brunswick Belize Finland Poland Sweden Central African Republic Switzerland Italy Colombia Municipality of Monaco Paraguay Kingdom of the Netherlands Sri Lanka Duchy of Prussia comune of Italy Roccarainola Malta San Marino Norway Hungary Spain Honduras Belarus Andorra Croatia Greenland Albania Republic of Macedonia Principality of Bulgaria Mexico Cyprus Nauru Chile Trinidad and Tobago Bolivia Czech Republic Latvia Slovakia Slovenia Romania Bulgaria region of Italy Egypt Uruguay Nicaragua Lesotho Quebec Nova Scotia Thailand
65
action count
action approx
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type assembly
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?u ) WHERE { FILTER ( ?x = 1 ) . { SELECT DISTINCT ?b ( COUNT ( ?g ) AS ?x ) WHERE { ?b property:legislative_body ?g . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:assembly } GROUP BY ?b } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q648716
P1001
Q15617994
USER
Which administrative territory applies to jurisdiction of National Assembly ?
(Q648716,P1001,c(Q15617994))
action filter_type
action find
entity Q648716
relation P1001
type Q15617994
['Q648716', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q15617994 . resource:Q648716 property:P1001 ?g }
National Assembly
action filter_type
action find
entity National Assembly
relation applies to jurisdiction
type designation for an administrative territorial entity
['National Assembly', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:National_Assembly property:applies_to_jurisdiction ?g }
[]
designation for an administrative territorial entity
Q28
SYSTEM
Hungary
Q28
(Q648716,P1001,c(Q15617994))
action filter_type
action find
entity Q648716
relation P1001
type Q15617994
[ANSWER] applies to jurisdiction of National Assembly
['Q648716', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q15617994 . resource:Q648716 property:P1001 ?g }
Hungary
Hungary applies to jurisdiction of National Assembly
Hungary
action filter_type
action find
entity National Assembly
relation applies to jurisdiction
type designation for an administrative territorial entity
['National Assembly', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:National_Assembly property:applies_to_jurisdiction ?g }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3258695
Q15617994
USER
And how about statute of Quebec?
(Q3258695,P1001,c(Q15617994))
action filter_type
action find
entity Q3258695
relation P1001
type Q15617994
['Q3258695', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . resource:Q3258695 property:P1001 ?q }
statute of Quebec
action filter_type
action find
entity statute of Quebec
relation applies to jurisdiction
type designation for an administrative territorial entity
['statute of Quebec', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:statute_of_Quebec property:applies_to_jurisdiction ?q }
[]
designation for an administrative territorial entity
Q176
SYSTEM
Quebec
Q176
(Q3258695,P1001,c(Q15617994))
action filter_type
action find
entity Q3258695
relation P1001
type Q15617994
[ANSWER]
['Q3258695', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . resource:Q3258695 property:P1001 ?q }
Quebec
Quebec
action filter_type
action find
entity statute of Quebec
relation applies to jurisdiction
type designation for an administrative territorial entity
['statute of Quebec', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:statute_of_Quebec property:applies_to_jurisdiction ?q }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q201658 Q7725634
USER
How many administrative territories are the countries of origin of lesser number of film genres and literary works than that administrative territory ?
(c(Q201658)|c(Q7725634),P495,c(Q15617994))
action count
action less
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 Q176
relation P495
type Q201658
type Q7725634
[[{'concept': 'Q201658'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?d ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?r ) AS ?x ) WHERE { { ?r property:P495 ?u . ?u rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q7725634 } UNION { ?r property:P495 ?u . ?u rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q201658 } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { ?y property:P495 resource:Q176 . { ?y rdf:type ?a . VALUES ( ?a ) { ( ontology:Q201658 ) ( ontology:Q7725634 ) } } } } . FILTER ( ?x < ?w ) }
action count
action less
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 Quebec
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 ( ?u ) AS ?d ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?r ) AS ?x ) WHERE { { ?r property:country_of_origin ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:literary_work } UNION { ?r property:country_of_origin ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:film_genre } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { ?y property:country_of_origin resource:Quebec . { ?y rdf:type ?a . VALUES ( ?a ) { ( ontology:film_genre ) ( ontology:literary_work ) } } } } . FILTER ( ?x < ?w ) }
[]
designation for an administrative territorial entity film genre literary work
SYSTEM
0
(c(Q201658)|c(Q7725634),P495,c(Q15617994))
action count
action less
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 Q176
relation P495
type Q201658
type Q7725634
[ANSWER]
[[{'concept': 'Q201658'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?d ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?r ) AS ?x ) WHERE { { ?r property:P495 ?u . ?u rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q7725634 } UNION { ?r property:P495 ?u . ?u rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q201658 } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { ?y property:P495 resource:Q176 . { ?y rdf:type ?a . VALUES ( ?a ) { ( ontology:Q201658 ) ( ontology:Q7725634 ) } } } } . FILTER ( ?x < ?w ) }
0
action count
action less
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 Quebec
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 ( ?u ) AS ?d ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?r ) AS ?x ) WHERE { { ?r property:country_of_origin ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:literary_work } UNION { ?r property:country_of_origin ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:film_genre } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { ?y property:country_of_origin resource:Quebec . { ?y rdf:type ?a . VALUES ( ?a ) { ( ontology:film_genre ) ( ontology:literary_work ) } } } } . FILTER ( ?x < ?w ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q8420
P276
Q1076486
USER
Where is 1964 Summer Olympics located ?
(Q8420,P276,c(Q1076486))
action filter_type
action find
entity Q8420
relation P276
type Q1076486
['Q8420', 'P276', {'concept': 'Q1076486'}]
SELECT DISTINCT ?k WHERE { resource:Q8420 property:P276 ?k . ?k rdf:type ontology:Q1076486 }
1964 Summer Olympics
action filter_type
action find
entity 1964 Summer Olympics
relation location
type sports venue
['1964 Summer Olympics', 'location', {'concept': 'sports venue'}]
SELECT DISTINCT ?k WHERE { resource:1964_Summer_Olympics property:location ?k . ?k rdf:type ontology:sports_venue }
[]
sports venue
Q330033
SYSTEM
National Olympic Stadium
Q330033
(Q8420,P276,c(Q1076486))
action filter_type
action find
entity Q8420
relation P276
type Q1076486
1964 Summer Olympics is located in [ANSWER]
['Q8420', 'P276', {'concept': 'Q1076486'}]
SELECT DISTINCT ?k WHERE { resource:Q8420 property:P276 ?k . ?k rdf:type ontology:Q1076486 }
National Olympic Stadium
1964 Summer Olympics is located in National Olympic Stadium
National Olympic Stadium
action filter_type
action find
entity 1964 Summer Olympics
relation location
type sports venue
['1964 Summer Olympics', 'location', {'concept': 'sports venue'}]
SELECT DISTINCT ?k WHERE { resource:1964_Summer_Olympics property:location ?k . ?k rdf:type ontology:sports_venue }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P669
Q79007 Q1076486
USER
Which streets are min number of sports venues located ?
(c(Q1076486),P669,Q17518281)
action argmin
action find_reverse_tuple_counts
relation P669
type Q79007
type Q1076486
[{'concept': 'Q1076486'}, 'P669', 'Q17518281']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?l ) { SELECT DISTINCT ?t ( COUNT ( ?x ) AS ?i ) WHERE { ?x property:P669 ?t . ?t rdf:type ontology:Q79007 . ?x rdf:type ontology:Q1076486 } GROUP BY ?t } } . { SELECT DISTINCT ?p ( COUNT ( ?f ) AS ?u ) WHERE { ?f property:P669 ?p . ?p rdf:type ontology:Q79007 . ?f rdf:type ontology:Q1076486 } GROUP BY ?p } . FILTER ( ?u = ?l ) }
action argmin
action find_reverse_tuple_counts
relation located on street
type street
type sports venue
[{'concept': 'sports venue'}, 'located on street', 'cours Saint-Pierre']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?l ) { SELECT DISTINCT ?t ( COUNT ( ?x ) AS ?i ) WHERE { ?x property:located_on_street ?t . ?t rdf:type ontology:street . ?x rdf:type ontology:sports_venue } GROUP BY ?t } } . { SELECT DISTINCT ?p ( COUNT ( ?f ) AS ?u ) WHERE { ?f property:located_on_street ?p . ?p rdf:type ontology:street . ?f rdf:type ontology:sports_venue } GROUP BY ?p } . FILTER ( ?u = ?l ) }
[]
street sports venue
Q533037 Q2873598 Q895076
SYSTEM
boulevard Saint-Germain, avenue Daumesnil, boulevard Haussmann
Q14629242 Q550 Q2921899 Q2873884 Q2921894 Q2921891 Q2136395 Q2873605 Q3452619 Q2921959 Q2873805 Q2922034 Q2921810 Q2922032 Q2922031 Q3149343 Q2921792 Q2873769 Q2873707 Q2874166 Q2395011 Q2921888 Q2921883 Q2873923 Q2922002 Q2921960 Q2873772 Q2921805 Q790568 Q2921920 Q2874202 Q2921923 Q2921925 Q2921926 Q4099024 Q2404571 Q790581 Q4267094 Q1907324 Q3058454 Q109873 Q2873820 Q2873824 Q41068 Q5348068 Q2922016 Q2921837 Q3007468 Q790578 Q2874056 Q790573 Q2874210 Q2632681 Q2873901 Q2873906 Q2581778 Q3058441 Q2874102 Q2460215 Q2873580 Q2921981 Q2873982 Q2921988 Q2921989 Q2873657 Q2874189 Q2874022 Q2922060 Q2921907 Q2922067 Q895082 Q34441 Q382500 Q590441 Q2873598 Q2873917 Q2873916 Q2079615 Q2921993 Q895076 Q2873649 Q2584356 Q109858 Q2874131 Q2922038 Q2873992 Q2922078 Q2874032 Q2921917 Q2921850 Q934651 Q735620 Q1851236 Q2873654 Q2873874 Q2873735 Q4381087 Q2873964 Q2873967 Q2873636 Q2873739 Q2921966 Q3407377 Q2873508 Q2921844 Q6546819 Q2874182 Q1027566 Q2921775 Q10526423 Q2921772 Q16331713 Q2874151 Q2874152 Q2873862 Q2504703 Q2873974 Q2874015 Q34472 Q2874010 Q2921974 Q2921973 Q2921972 Q2921971 Q2921970 Q2921874 Q2921875 Q2921979 Q3094222 Q2873793 Q3449383 Q790562 Q2921939 Q2873818 Q2873944 Q895077 Q10679907 Q2921942 Q895078 Q2873546 Q2922026 Q3149212 Q7696225 Q2921864 Q533037 Q2921783 Q1007186 Q2384518 Q17518281
(c(Q1076486),P669,Q17518281)
action argmin
action find_reverse_tuple_counts
relation P669
type Q79007
type Q1076486
Min number of sports venues are located at [ANSWERS]
[{'concept': 'Q1076486'}, 'P669', 'Q17518281']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?l ) { SELECT DISTINCT ?t ( COUNT ( ?x ) AS ?i ) WHERE { ?x property:P669 ?t . ?t rdf:type ontology:Q79007 . ?x rdf:type ontology:Q1076486 } GROUP BY ?t } } . { SELECT DISTINCT ?p ( COUNT ( ?f ) AS ?u ) WHERE { ?f property:P669 ?p . ?p rdf:type ontology:Q79007 . ?f rdf:type ontology:Q1076486 } GROUP BY ?p } . FILTER ( ?u = ?l ) }
esplanade Habib-Bourguiba avenue des Champs-Élysées boulevard Poissonnière avenue Winston-Churchill boulevard Pereire boulevard Pasteur H. C. Andersens Boulevard avenue Denfert-Rochereau rue du Trésor boulevard Vincent-Auriol avenue Philippe-Auguste boulevard de la Madeleine boulevard Edgar-Quinet boulevard de la Villette boulevard de la Somme impasse de la Poissonnerie boulevard Brune avenue Matignon avenue Jean-Jaurès avenue du Maine avenue David-Weill boulevard Morland boulevard Masséna avenue de Marigny boulevard de Strasbourg La Défense ring road avenue Maurice-d'Ocagne boulevard Diderot avenue Henri-Martin boulevard Saint-Jacques avenue Élisée-Reclus boulevard Richard-Lenoir boulevard Saint-Marcel boulevard Saint-Martin Boulevard Alexandre-Taché boulevard Saint-Denis avenue Victor-Hugo Laurier Avenue Massachusetts Avenue esplanade du 9-novembre-1989 Sixth Avenue avenue Raymond-Poincaré avenue René-Coty Paulista Avenue Eglinton Avenue boulevard de l'Hôpital boulevard Henri-IV Liteyny Avenue avenue Kléber avenue de la République avenue Mozart avenue Émile-Zola Moskovsky Prospekt avenue de Camoëns avenue de Flandre boulevard des Invalides esplanade Pierre-Vidal-Naquet avenue des Gobelins Saint Laurent Boulevard avenue Claude-Vellefaux boulevard de Clichy avenue de l'Observatoire boulevard de Montmorency boulevard de Ménilmontant avenue George V avenue du Président-Wilson avenue de la Porte-de-Charenton Boulevard du Crime boulevard Poniatowski boulevard du Palais boulevard des Italiens Bundesstraße 2 Nevsky Prospect boulevard des Capucines avenue Daumesnil avenue de France avenue de Friedland Paseo del Prado boulevard de Port-Royal boulevard Haussmann avenue Gabriel Vasilissis Sofias Avenue Fifth Avenue avenue du Colonel-Henri-Rol-Tanguy boulevard des Batignolles avenue de la Belle-Gabrielle boulevard du Montparnasse avenue de la Porte-de-Montrouge boulevard Raspail boulevard Jourdan Bulevar kralja Aleksandra avenue Montaigne boulevard du Temple avenue Gambetta avenue Victoria avenue Junot Vernadskogo Avenue avenue de Versailles avenue de Villiers avenue Franklin-D.-Roosevelt avenue Ledru-Rollin boulevard Voltaire promenade du Peyrou avenue Albert-de-Mun boulevard Jules-Ferry Ligovsky Avenue Park Avenue boulevard Montmartre boulevard Auguste-Blanqui Hornstulls strand boulevard Arago Leoforos Megalou Alexandrou avenue du Général-Leclerc avenue du Général-Lemonnier avenue Trudaine boulevard de Rochechouart avenue de Wagram avenue de la Porte-d'Auteuil Bundesstraße 13 avenue de l'Opéra boulevard de Courcelles boulevard de Charonne boulevard de Bonne-Nouvelle boulevard de Bercy boulevard de Belleville boulevard Malesherbes boulevard Macdonald boulevard de Grenelle Grote Houtstraat avenue Parmentier Patission Street avenue Foch boulevard Soult avenue Rachel avenue de Saint-Mandé boulevard de Magenta Stigbergsgatan boulevard Sérurier boulevard Saint-Michel avenue Bugeaud boulevard de la Chapelle impasse Chartière Telegraph Avenue boulevard Lannes boulevard Saint-Germain boulevard Bessières Bundesstraße 466 Independence Avenue cours Saint-Pierre
Min number of sports venues are located at boulevard Saint-Germain, avenue Daumesnil and boulevard Haussmann
boulevard Saint-Germain avenue Daumesnil boulevard Haussmann
action argmin
action find_reverse_tuple_counts
relation located on street
type street
type sports venue
[{'concept': 'sports venue'}, 'located on street', 'cours Saint-Pierre']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?l ) { SELECT DISTINCT ?t ( COUNT ( ?x ) AS ?i ) WHERE { ?x property:located_on_street ?t . ?t rdf:type ontology:street . ?x rdf:type ontology:sports_venue } GROUP BY ?t } } . { SELECT DISTINCT ?p ( COUNT ( ?f ) AS ?u ) WHERE { ?f property:located_on_street ?p . ?p rdf:type ontology:street . ?f rdf:type ontology:sports_venue } GROUP BY ?p } . FILTER ( ?u = ?l ) }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P138
Q15700808 Q79007
USER
How many streets have greater number of urban unit definitions as their namesake than that street ?
(c(Q79007),P138,c(Q15700808))
[{'concept': 'Q79007'}, 'P138', {'concept': 'Q15700808'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:P138 ?y . ?z rdf:type ontology:Q79007 . ?y rdf:type ontology:Q15700808 }
[{'concept': 'street'}, 'named after', {'concept': 'urban unit definition'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:named_after ?y . ?z rdf:type ontology:street . ?y rdf:type ontology:urban_unit_definition }
[]
urban unit definition street
Comparative|Count over More/Less|Single entity type|Clarification
Q533037
SYSTEM
Did you mean boulevard Saint-Germain ?
(c(Q79007),P138,c(Q15700808))
[ANSWER]
[{'concept': 'Q79007'}, 'P138', {'concept': 'Q15700808'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:P138 ?y . ?z rdf:type ontology:Q79007 . ?y rdf:type ontology:Q15700808 }
Did you mean boulevard Saint-Germain ?
boulevard Saint-Germain
[{'concept': 'street'}, 'named after', {'concept': 'urban unit definition'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:named_after ?y . ?z rdf:type ontology:street . ?y rdf:type ontology:urban_unit_definition }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant boulevard Haussmann. Could you tell me the answer for that?
(c(Q79007),P138,c(Q15700808))
Q895076
[{'concept': 'Q79007'}, 'P138', {'concept': 'Q15700808'}]
[{'concept': 'street'}, 'named after', {'concept': 'urban unit definition'}]
[]
SYSTEM
1
Q785707
(c(Q79007),P138,c(Q15700808))
[ANSWER]
[{'concept': 'Q79007'}, 'P138', {'concept': 'Q15700808'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:P138 ?y . ?z rdf:type ontology:Q79007 . ?y rdf:type ontology:Q15700808 }
Kifisias Avenue
1
[{'concept': 'street'}, 'named after', {'concept': 'urban unit definition'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:named_after ?y . ?z rdf:type ontology:street . ?y rdf:type ontology:urban_unit_definition }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q150 Q176
P19 P1412
Q502895
USER
Which people were born at Quebec and speaks French ?
AND((c(Q502895),P19,Q176), (c(Q502895),P1412,Q150))
action filter_type
action intersection
action find_reverse
entity Q176
relation P19
action find_reverse
entity Q150
relation P1412
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q176'], [{'concept': 'Q502895'}, 'P1412', 'Q150']]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q502895 . ?m property:P19 resource:Q176 . ?m property:P1412 resource:Q150 }
French Quebec
action filter_type
action intersection
action find_reverse
entity Quebec
relation place of birth
action find_reverse
entity French
relation languages spoken, written or signed
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Quebec'], [{'concept': 'common name'}, 'languages spoken, written or signed', 'French']]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:common_name . ?m property:place_of_birth resource:Quebec . ?m property:languages_spoken,_written_or_signed resource:French }
[]
common name
Q2824507 Q3018312 Q3165214 Q1380793 Q360286 Q3014239 Q17485877 Q3263773 Q3168459 Q16629650
SYSTEM
Some of them are Adjutor Rivard, David Lonergan, Jean-Claude Saint-Onge, Gratien Gélinas, Paul-Émile Borduas, Daniel Johnson, Charles Le Blanc, Louise Latraverse, Jean-Paul Desbiens, Dominique Fortier
Q3168459 Q1380793 Q17485877 Q3263773 Q360286 Q3014239 Q1070261 Q16629650 Q3165214 Q2824507 Q3018312
AND((c(Q502895),P19,Q176), (c(Q502895),P1412,Q150))
action filter_type
action intersection
action find_reverse
entity Q176
relation P19
action find_reverse
entity Q150
relation P1412
type Q502895
[ANSWERS] were born at Quebec and speaks French
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q176'], [{'concept': 'Q502895'}, 'P1412', 'Q150']]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q502895 . ?m property:P19 resource:Q176 . ?m property:P1412 resource:Q150 }
Jean-Paul Desbiens Gratien Gélinas Charles Le Blanc Louise Latraverse Paul-Émile Borduas Daniel Johnson Himeka Dominique Fortier Jean-Claude Saint-Onge Adjutor Rivard David Lonergan
Adjutor Rivard, David Lonergan, Jean-Claude Saint-Onge, Gratien Gélinas, Paul-Émile Borduas, Daniel Johnson, Charles Le Blanc, Louise Latraverse, Jean-Paul Desbiens and Dominique Fortier were born at Quebec and speaks French
Adjutor Rivard David Lonergan Jean-Claude Saint-Onge Gratien Gélinas Paul-Émile Borduas Daniel Johnson Charles Le Blanc Louise Latraverse Jean-Paul Desbiens Dominique Fortier
action filter_type
action intersection
action find_reverse
entity Quebec
relation place of birth
action find_reverse
entity French
relation languages spoken, written or signed
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Quebec'], [{'concept': 'common name'}, 'languages spoken, written or signed', 'French']]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:common_name . ?m property:place_of_birth resource:Quebec . ?m property:languages_spoken,_written_or_signed resource:French }
[]