Simple Question (Direct)
Simple Question
Q328948
P1196
Q1931388
USER
What situation did George McAnthony die in ?
(Q328948,P1196,c(Q1931388))
action filter_type
action find
entity Q328948
relation P1196
type Q1931388
['Q328948', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?l WHERE { resource:Q328948 property:P1196 ?l . ?l rdf:type ontology:Q1931388 }
George McAnthony
action filter_type
action find
entity George McAnthony
relation manner of death
type cause of death
['George McAnthony', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?l WHERE { resource:George_McAnthony property:manner_of_death ?l . ?l rdf:type ontology:cause_of_death }
[]
cause of death
Q3739104
SYSTEM
natural causes
Q3739104
(Q328948,P1196,c(Q1931388))
action filter_type
action find
entity Q328948
relation P1196
type Q1931388
[ANSWER]
['Q328948', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?l WHERE { resource:Q328948 property:P1196 ?l . ?l rdf:type ontology:Q1931388 }
natural causes
natural causes
action filter_type
action find
entity George McAnthony
relation manner of death
type cause of death
['George McAnthony', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?l WHERE { resource:George_McAnthony property:manner_of_death ?l . ?l rdf:type ontology:cause_of_death }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q328948
P175
Q2031291
USER
Who performed George McAnthony ?
(c(Q2031291),P175,Q328948)
action filter_type
action find_reverse
entity Q328948
relation P175
type Q2031291
[{'concept': 'Q2031291'}, 'P175', 'Q328948']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q2031291 . ?s property:P175 resource:Q328948 }
George McAnthony
action filter_type
action find_reverse
entity George McAnthony
relation performer
type release
[{'concept': 'release'}, 'performer', 'George McAnthony']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:release . ?s property:performer resource:George_McAnthony }
[]
release
Q3644575
SYSTEM
Bridge to El Dorado
Q3644575
(c(Q2031291),P175,Q328948)
action filter_type
action find_reverse
entity Q328948
relation P175
type Q2031291
[ANSWER]
[{'concept': 'Q2031291'}, 'P175', 'Q328948']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q2031291 . ?s property:P175 resource:Q328948 }
Bridge to El Dorado
Bridge to El Dorado
action filter_type
action find_reverse
entity George McAnthony
relation performer
type release
[{'concept': 'release'}, 'performer', 'George McAnthony']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:release . ?s property:performer resource:George_McAnthony }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q328948
P509
Q2057971
USER
What lead to the death of George McAnthony ?
(Q328948,P509,c(Q2057971))
action filter_type
action find
entity Q328948
relation P509
type Q2057971
['Q328948', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?b WHERE { resource:Q328948 property:P509 ?b . ?b rdf:type ontology:Q2057971 }
George McAnthony
action filter_type
action find
entity George McAnthony
relation cause of death
type health problem
['George McAnthony', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?b WHERE { resource:George_McAnthony property:cause_of_death ?b . ?b rdf:type ontology:health_problem }
[]
health problem
Q12152
SYSTEM
myocardial infarction
Q12152
(Q328948,P509,c(Q2057971))
action filter_type
action find
entity Q328948
relation P509
type Q2057971
[ANSWER]
['Q328948', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?b WHERE { resource:Q328948 property:P509 ?b . ?b rdf:type ontology:Q2057971 }
myocardial infarction
myocardial infarction
action filter_type
action find
entity George McAnthony
relation cause of death
type health problem
['George McAnthony', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?b WHERE { resource:George_McAnthony property:cause_of_death ?b . ?b rdf:type ontology:health_problem }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q328948
P20
Q15617994
USER
Where did that person expire ?
(Q12152,P20,c(Q15617994))
action filter_type
action find
entity Q328948
relation P20
type Q15617994
['Q12152', 'P20', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q328948 property:P20 ?d . ?d rdf:type ontology:Q15617994 }
George McAnthony
action filter_type
action find
entity George McAnthony
relation place of death
type designation for an administrative territorial entity
['myocardial infarction', 'place of death', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:George_McAnthony property:place_of_death ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q128226
SYSTEM
Terracina
Q128226
(Q12152,P20,c(Q15617994))
action filter_type
action find
entity Q328948
relation P20
type Q15617994
[ANSWER]
['Q12152', 'P20', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q328948 property:P20 ?d . ?d rdf:type ontology:Q15617994 }
Terracina
Terracina
action filter_type
action find
entity George McAnthony
relation place of death
type designation for an administrative territorial entity
['myocardial infarction', 'place of death', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:George_McAnthony property:place_of_death ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q986
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relations with greater number of administrative territories than Eritrea ?
(c(Q15617994),P530,c(Q15617994))
action greater
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q986
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?x ) AS ?b ) WHERE { ?x property:P530 ?d . ?d rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15617994 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?z ) WHERE { resource:Q986 property:P530 ?r . ?r rdf:type ontology:Q15617994 } } . FILTER ( ?b > ?z ) }
Eritrea
action greater
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Eritrea
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?x ) AS ?b ) WHERE { ?x property:diplomatic_relation ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?z ) WHERE { resource:Eritrea property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?b > ?z ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q37 Q711 Q717 Q252 Q399 Q398 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q822 Q241 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q734 Q236 Q230 Q233 Q27 Q28 Q1049 Q189 Q843 Q184 Q1029 Q736 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q974 Q1033 Q1030 Q191 Q963 Q298 Q115 Q114 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q219 Q916 Q1009 Q1008 Q971 Q874 Q79 Q77 Q858 Q878 Q810 Q1016 Q1011 Q29 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action greater
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q986
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?x ) AS ?b ) WHERE { ?x property:P530 ?d . ?d rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15617994 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?z ) WHERE { resource:Q986 property:P530 ?r . ?r rdf:type ontology:Q15617994 } } . FILTER ( ?b > ?z ) }
Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Lithuania Mongolia Venezuela Indonesia Armenia Bahrain Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Lebanon Cuba Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Montenegro Georgia Malta Ireland Hungary Sudan Iceland Pakistan Belarus Mozambique Ecuador Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Democratic Republic of the Congo Nigeria Namibia Estonia Botswana Chile Ethiopia Kenya Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Bulgaria Angola Cameroon Côte d'Ivoire Republic of the Congo Turkmenistan Egypt Uruguay Syria United Arab Emirates Jordan Libya Cape Verde Spain Thailand Zambia
Italy Brazil United States of America
action greater
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Eritrea
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?x ) AS ?b ) WHERE { ?x property:diplomatic_relation ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?z ) WHERE { resource:Eritrea property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?b > ?z ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q38 Q155 Q30
P463
Q43229
USER
Which organizations were Italy, Brazil and United States of America a member of ?
(Q38,P463,c(Q43229)) (Q155,P463,c(Q43229)) (Q30,P463,c(Q43229))
action union
action filter_type
action find
entity Q38
relation P463
type Q43229
action filter_type
action find
entity Q155
relation P463
type Q43229
action filter_type
action find
entity Q30
relation P463
type Q43229
['Q38', 'P463', {'concept': 'Q43229'}] ['Q155', 'P463', {'concept': 'Q43229'}] ['Q30', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ?z WHERE { { resource:Q38 property:P463 ?z . ?z rdf:type ontology:Q43229 } UNION { resource:Q155 property:P463 ?z . ?z rdf:type ontology:Q43229 } }
Italy Brazil United States of America
action union
action filter_type
action find
entity Italy
relation member of
type organization
action filter_type
action find
entity Brazil
relation member of
type organization
action filter_type
action find
entity United States of America
relation member of
type organization
['Italy', 'member of', {'concept': 'organization'}] ['Brazil', 'member of', {'concept': 'organization'}] ['United States of America', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ?z WHERE { { resource:Italy property:member_of ?z . ?z rdf:type ontology:organization } UNION { resource:Brazil property:member_of ?z . ?z rdf:type ontology:organization } }
[]
organization
Q7809 Q42944 Q151991
SYSTEM
United Nations Educational, Scientific and Cultural Organization, European Organization for Nuclear Research, European Southern Observatory
Q340195 Q125761 Q191384 Q1153087 Q309195 Q689859 Q899770 Q189946 Q7809 Q132551 Q1666759 Q699036 Q42944 Q61923 Q177773 Q41550 Q3772571 Q386120 Q656801 Q151991 Q161549 Q7825 Q488981 Q82151 Q7178 Q827525 Q340195 Q191384 Q182500 Q123759 Q1045401 Q7825 Q656801 Q151991 Q123209 Q243630 Q827525 Q340195 Q191384 Q899770 Q41550 Q656801 Q170481 Q7825 Q827525
(Q38,P463,c(Q43229)) (Q155,P463,c(Q43229)) (Q30,P463,c(Q43229))
action union
action filter_type
action find
entity Q38
relation P463
type Q43229
action filter_type
action find
entity Q155
relation P463
type Q43229
action filter_type
action find
entity Q30
relation P463
type Q43229
[ANSWERS]
['Q38', 'P463', {'concept': 'Q43229'}] ['Q155', 'P463', {'concept': 'Q43229'}] ['Q30', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ?z WHERE { { resource:Q38 property:P463 ?z . ?z rdf:type ontology:Q43229 } UNION { resource:Q155 property:P463 ?z . ?z rdf:type ontology:Q43229 } }
African Development Bank International Civil Aviation Organization International Bank for Reconstruction and Development Inter-American Development Bank Bank for International Settlements International Fund for Agricultural Development International Centre for Settlement of Investment Disputes Western European Union United Nations Educational, Scientific and Cultural Organization United Nations High Commissioner for Refugees International Mobile Satellite Organization United Nations Truce Supervision Organization European Organization for Nuclear Research World Tourism Organization World Intellectual Property Organization Organisation for Economic Co-operation and Development Caribbean Development Bank United Nations Industrial Development Organization International Finance Corporation European Southern Observatory European Coal and Steel Community World Trade Organization European Bank for Reconstruction and Development Food and Agriculture Organization of the United Nations International Red Cross and Red Crescent Movementsac International Development Association African Development Bank International Bank for Reconstruction and Development Community of Portuguese Language Countries Organization of American States Community of Latin American and Caribbean States World Trade Organization International Finance Corporation European Southern Observatory Latin Union BRICS International Development Association African Development Bank International Bank for Reconstruction and Development International Centre for Settlement of Investment Disputes Organisation for Economic Co-operation and Development International Finance Corporation Asia-Pacific Economic Cooperation World Trade Organization International Development Association
United Nations Educational, Scientific and Cultural Organization European Organization for Nuclear Research European Southern Observatory
action union
action filter_type
action find
entity Italy
relation member of
type organization
action filter_type
action find
entity Brazil
relation member of
type organization
action filter_type
action find
entity United States of America
relation member of
type organization
['Italy', 'member of', {'concept': 'organization'}] ['Brazil', 'member of', {'concept': 'organization'}] ['United States of America', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ?z WHERE { { resource:Italy property:member_of ?z . ?z rdf:type ontology:organization } UNION { resource:Brazil property:member_of ?z . ?z rdf:type ontology:organization } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q42944
P170
Q1077784
USER
What did that organization make ?
(c(Q1077784),P170,Q42944)
action filter_type
action find_reverse
entity Q42944
relation P170
type Q1077784
[{'concept': 'Q1077784'}, 'P170', 'Q42944']
SELECT DISTINCT ?q WHERE { ?q property:P170 resource:Q42944 . ?q rdf:type ontology:Q1077784 }
European Organization for Nuclear Research
action filter_type
action find_reverse
entity European Organization for Nuclear Research
relation creator
type programming tool
[{'concept': 'programming tool'}, 'creator', 'European Organization for Nuclear Research']
SELECT DISTINCT ?q WHERE { ?q property:creator resource:European_Organization_for_Nuclear_Research . ?q rdf:type ontology:programming_tool }
[]
programming tool
Clarification for simple ques.
Q42944
SYSTEM
Did you mean European Organization for Nuclear Research ?
Q7809 Q42944 Q151991
(c(Q1077784),P170,Q7809) (c(Q1077784),P170,Q42944) (c(Q1077784),P170,Q151991)
[ANSWER]
[{'concept': 'Q1077784'}, 'P170', 'Q7809'] [{'concept': 'Q1077784'}, 'P170', 'Q42944'] [{'concept': 'Q1077784'}, 'P170', 'Q151991']
SELECT DISTINCT ?q WHERE { ?q property:P170 resource:Q42944 . ?q rdf:type ontology:Q1077784 }
United Nations Educational, Scientific and Cultural Organization European Organization for Nuclear Research European Southern Observatory
Did you mean European Organization for Nuclear Research ?
European Organization for Nuclear Research
[{'concept': 'programming tool'}, 'creator', 'United Nations Educational, Scientific and Cultural Organization'] [{'concept': 'programming tool'}, 'creator', 'European Organization for Nuclear Research'] [{'concept': 'programming tool'}, 'creator', 'European Southern Observatory']
SELECT DISTINCT ?q WHERE { ?q property:creator resource:European_Organization_for_Nuclear_Research . ?q rdf:type ontology:programming_tool }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q1077784),P170,Q42944)
[{'concept': 'Q1077784'}, 'P170', 'Q42944']
[{'concept': 'programming tool'}, 'creator', 'European Organization for Nuclear Research']
[]
Q947171
SYSTEM
ROOT
Q947171
(c(Q1077784),P170,Q42944)
action filter_type
action find_reverse
entity Q42944
relation P170
type Q1077784
[ANSWER]
[{'concept': 'Q1077784'}, 'P170', 'Q42944']
SELECT DISTINCT ?q WHERE { ?q property:P170 resource:Q42944 . ?q rdf:type ontology:Q1077784 }
ROOT
ROOT
action filter_type
action find_reverse
entity European Organization for Nuclear Research
relation creator
type programming tool
[{'concept': 'programming tool'}, 'creator', 'European Organization for Nuclear Research']
SELECT DISTINCT ?q WHERE { ?q property:creator resource:European_Organization_for_Nuclear_Research . ?q rdf:type ontology:programming_tool }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P828
Q2057971 Q2057971 Q169872
USER
How many health problems are the underlying cause of exactly 2 health problems or symptoms ?
(c(Q2057971)|c(Q169872),P828,c(Q2057971))
action count
action equal
action union
action find_reverse_tuple_counts
relation P828
type Q2057971
type Q2057971
action find_reverse_tuple_counts
relation P828
type Q2057971
type Q169872
value 2
[[{'concept': 'Q2057971'}, {'concept': 'Q169872'}], 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?l ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?p ) WHERE { ?i rdf:type ?q . VALUES ( ?q ) { ( ontology:Q2057971 ) ( ontology:Q169872 ) } } GROUP BY ?g } . FILTER ( ?p = 2 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation has cause
type health problem
type health problem
action find_reverse_tuple_counts
relation has cause
type health problem
type symptom
value 2
[[{'concept': 'health problem'}, {'concept': 'symptom'}], 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?l ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?p ) WHERE { ?i rdf:type ?q . VALUES ( ?q ) { ( ontology:health_problem ) ( ontology:symptom ) } } GROUP BY ?g } . FILTER ( ?p = 2 ) }
[]
health problem health problem symptom
SYSTEM
5
Q18642366 Q147778 Q155857 Q5384031 Q12206
(c(Q2057971)|c(Q169872),P828,c(Q2057971))
action count
action equal
action union
action find_reverse_tuple_counts
relation P828
type Q2057971
type Q2057971
action find_reverse_tuple_counts
relation P828
type Q2057971
type Q169872
value 2
[ANSWER]
[[{'concept': 'Q2057971'}, {'concept': 'Q169872'}], 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?l ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?p ) WHERE { ?i rdf:type ?q . VALUES ( ?q ) { ( ontology:Q2057971 ) ( ontology:Q169872 ) } } GROUP BY ?g } . FILTER ( ?p = 2 ) }
intoxication liver cirrhosis rubella Epstein–Barr virus infection diabetes mellitus
5
action count
action equal
action union
action find_reverse_tuple_counts
relation has cause
type health problem
type health problem
action find_reverse_tuple_counts
relation has cause
type health problem
type symptom
value 2
[[{'concept': 'health problem'}, {'concept': 'symptom'}], 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?l ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?p ) WHERE { ?i rdf:type ?q . VALUES ( ?q ) { ( ontology:health_problem ) ( ontology:symptom ) } } GROUP BY ?g } . FILTER ( ?p = 2 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P277
Q629206 Q1077784
USER
Which computer languages are used to develop exactly 3 programming tools ?
(c(Q1077784),P277,c(Q629206))
action equal
action find_reverse_tuple_counts
relation P277
type Q629206
type Q1077784
value 3
[{'concept': 'Q1077784'}, 'P277', {'concept': 'Q629206'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?v ) AS ?o ) WHERE { ?v property:P277 ?g . ?g rdf:type ontology:Q629206 . ?v rdf:type ontology:Q1077784 } GROUP BY ?g } . FILTER ( ?o = 3 ) }
action equal
action find_reverse_tuple_counts
relation programming language
type computer language
type programming tool
value 3
[{'concept': 'programming tool'}, 'programming language', {'concept': 'computer language'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?v ) AS ?o ) WHERE { ?v property:programming_language ?g . ?g rdf:type ontology:computer_language . ?v rdf:type ontology:programming_tool } GROUP BY ?g } . FILTER ( ?o = 3 ) }
[]
computer language programming tool
Q34010 Q975594 Q81571
SYSTEM
Haskell, Cython, Pascal
Q188531 Q81571 Q34010 Q975594
(c(Q1077784),P277,c(Q629206))
action equal
action find_reverse_tuple_counts
relation P277
type Q629206
type Q1077784
value 3
[ANSWERS]
[{'concept': 'Q1077784'}, 'P277', {'concept': 'Q629206'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?v ) AS ?o ) WHERE { ?v property:P277 ?g . ?g rdf:type ontology:Q629206 . ?v rdf:type ontology:Q1077784 } GROUP BY ?g } . FILTER ( ?o = 3 ) }
Objective-C Pascal Haskell Cython
Haskell Cython Pascal
action equal
action find_reverse_tuple_counts
relation programming language
type computer language
type programming tool
value 3
[{'concept': 'programming tool'}, 'programming language', {'concept': 'computer language'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?v ) AS ?o ) WHERE { ?v property:programming_language ?g . ?g rdf:type ontology:computer_language . ?v rdf:type ontology:programming_tool } GROUP BY ?g } . FILTER ( ?o = 3 ) }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P941
Q629206
USER
How many computer languages were that computer language a source of inspiration for ?
(c(Q629206),P941,Q81571)
[{'concept': 'Q629206'}, 'P941', 'Q81571']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P941 resource:Q4458275 . ?z rdf:type ontology:Q629206 }
[{'concept': 'computer language'}, 'inspired by', 'Pascal']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:inspired_by resource:Pascal . ?z rdf:type ontology:computer_language }
[]
computer language
Quantitative|Count|Single entity type|Clarification
Q34010
SYSTEM
Did you mean Haskell ?
(c(Q629206),P941,Q34010) (c(Q629206),P941,Q975594) (c(Q629206),P941,Q81571)
[ANSWER]
[{'concept': 'Q629206'}, 'P941', 'Q34010'] [{'concept': 'Q629206'}, 'P941', 'Q975594'] [{'concept': 'Q629206'}, 'P941', 'Q81571']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P941 resource:Q4458275 . ?z rdf:type ontology:Q629206 }
Did you mean Haskell ?
Haskell
[{'concept': 'computer language'}, 'inspired by', 'Haskell'] [{'concept': 'computer language'}, 'inspired by', 'Cython'] [{'concept': 'computer language'}, 'inspired by', 'Pascal']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:inspired_by resource:Pascal . ?z rdf:type ontology:computer_language }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Pascal. Could you tell me the answer for that?
(c(Q629206),P941,Q81571)
Q81571
[{'concept': 'Q629206'}, 'P941', 'Q81571']
[{'concept': 'computer language'}, 'inspired by', 'Pascal']
[]
SYSTEM
1
Q1121719
(c(Q629206),P941,Q81571)
[ANSWER]
[{'concept': 'Q629206'}, 'P941', 'Q81571']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P941 resource:Q4458275 . ?z rdf:type ontology:Q629206 }
Component Pascal
1
[{'concept': 'computer language'}, 'inspired by', 'Pascal']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:inspired_by resource:Pascal . ?z rdf:type ontology:computer_language }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q38 Q156743
P291
Q1002697
USER
How many periodical literatures have Italy or Ternopil as their publication place ?
(c(Q1002697),P291,Q38) (c(Q1002697),P291,Q156743)
action count
action union
action filter_type
action find_reverse
entity Q38
relation P291
type Q1002697
action filter_type
action find_reverse
entity Q156743
relation P291
type Q1002697
[{'concept': 'Q1002697'}, 'P291', 'Q38'] [{'concept': 'Q1002697'}, 'P291', 'Q156743']
SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { ?h property:P291 ?w . VALUES ( ?w ) { ( resource:Q38 ) ( resource:Q156743 ) } }
Italy Ternopil
action count
action union
action filter_type
action find_reverse
entity Italy
relation place of publication
type periodical literature
action filter_type
action find_reverse
entity Ternopil
relation place of publication
type periodical literature
[{'concept': 'periodical literature'}, 'place of publication', 'Italy'] [{'concept': 'periodical literature'}, 'place of publication', 'Ternopil']
SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { ?h property:place_of_publication ?w . VALUES ( ?w ) { ( resource:Italy ) ( resource:Ternopil ) } }
[]
periodical literature
SYSTEM
4
Q18171516 Q18171439 Q18171422 Q18171445
(c(Q1002697),P291,Q38) (c(Q1002697),P291,Q156743)
action count
action union
action filter_type
action find_reverse
entity Q38
relation P291
type Q1002697
action filter_type
action find_reverse
entity Q156743
relation P291
type Q1002697
[ANSWER]
[{'concept': 'Q1002697'}, 'P291', 'Q38'] [{'concept': 'Q1002697'}, 'P291', 'Q156743']
SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { ?h property:P291 ?w . VALUES ( ?w ) { ( resource:Q38 ) ( resource:Q156743 ) } }
Today and Tomorrow The Prince L'ardito The Empire
4
action count
action union
action filter_type
action find_reverse
entity Italy
relation place of publication
type periodical literature
action filter_type
action find_reverse
entity Ternopil
relation place of publication
type periodical literature
[{'concept': 'periodical literature'}, 'place of publication', 'Italy'] [{'concept': 'periodical literature'}, 'place of publication', 'Ternopil']
SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { ?h property:place_of_publication ?w . VALUES ( ?w ) { ( resource:Italy ) ( resource:Ternopil ) } }
[]